Skip to content

Commit

Permalink
Merge pull request #505 from disruptek/multiple_positions
Browse files Browse the repository at this point in the history
fix for multiple toasts with different positions; closes #438
  • Loading branch information
TimFerrell committed Apr 11, 2017
2 parents 3e0cca8 + 42730d7 commit ac1be4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toastr.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

function getContainer(options, create) {
if (!options) { options = getOptions(); }
$container = $('#' + options.containerId);
$container = $('#' + options.containerId + '[position =' + options.positionClass + ']');
if ($container.length) {
return $container;
}
Expand Down Expand Up @@ -144,6 +144,7 @@
function createContainer(options) {
$container = $('<div/>')
.attr('id', options.containerId)
.attr('position', options.positionClass)
.addClass(options.positionClass);

$container.appendTo($(options.target));
Expand Down

1 comment on commit ac1be4c

@sido420
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TimFerrell why was this commit not added to 2.14?

Please sign in to comment.