Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

closes #35 closes $100

Added Close Button feature:

Optionally enable a close button

    toastr.options.closeButton = true;

Optionally override the close button's HTML.

    toastr.options.closeHtml = '<button><i class="icon-off"></i></button>';

You can also override the CSS/LESS for `#toast-container .toast-close-button`
  • Loading branch information...
commit fb34ff92b1af38b3f77c7cfdf6e1604039f73173 1 parent 385c1b5
@johnpapa johnpapa authored
View
15 README.md
@@ -26,7 +26,6 @@ http://nuget.org/packages/toastr
## [Bower](http://bower.io/)
bower install toastr
-
## Breaking Changes
####Animation Changes
@@ -64,8 +63,20 @@ For other API calls, see the [demo](http://codeseven.github.io/toastr/demo.html)
// Clears the current list of toasts
toastr.clear()
+### Close Button
+Optionally enable a close button
+
+ toastr.options.closeButton = true;
+
+Optionally override the close button's HTML.
+
+ toastr.options.closeHtml = '<button><i class="icon-off"></i></button>';
+
+You can also override the CSS/LESS for `#toast-container .toast-close-button`
+
### Display Sequence
- // Show newest toast at bottom (top is default)
+Show newest toast at bottom (top is default)
+
toastr.options.newestOnTop = false;
### Callbacks
View
47 tests/toastr.css
@@ -13,6 +13,43 @@
color: #cccccc;
text-decoration: none;
}
+/*
+ https://github.com/twitter/bootstrap/blob/master/less/close.less
+ https://github.com/twitter/bootstrap/blob/master/less/alerts.less
+*/
+.toast-close-button {
+ position: relative;
+ right: -0.3em;
+ top: -0.3em;
+ float: right;
+ font-size: 20px;
+ font-weight: bold;
+ color: #ffffff;
+ -webkit-text-shadow: 0 1px 0 #ffffff;
+ text-shadow: 0 1px 0 #ffffff;
+ opacity: 0.8;
+ -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
+ filter: alpha(opacity=80);
+}
+.toast-close-button:hover,
+.toast-close-button:focus {
+ color: #000000;
+ text-decoration: none;
+ cursor: pointer;
+ opacity: 0.4;
+ -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
+ filter: alpha(opacity=40);
+}
+/*Additional properties for button version
+ iOS requires the button element instead of an anchor tag.
+ If you want the anchor version, it requires `href="#"`.*/
+button.toast-close-button {
+ padding: 0;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+ -webkit-appearance: none;
+}
.toast-top-full-width {
top: 0;
right: 0;
@@ -42,6 +79,8 @@
#toast-container {
position: fixed;
z-index: 999999;
+ /*overrides*/
+
}
#toast-container * {
-moz-box-sizing: border-box;
@@ -112,12 +151,20 @@
padding: 8px 8px 8px 50px;
width: 11em;
}
+ #toast-container .toast-close-button {
+ right: -0.2em;
+ top: -0.2em;
+ }
}
@media all and (min-width: 241px) and (max-width: 480px) {
#toast-container > div {
padding: 8px 8px 8px 50px;
width: 18em;
}
+ #toast-container .toast-close-button {
+ right: -0.2em;
+ top: -0.2em;
+ }
}
@media all and (min-width: 481px) and (max-width: 768px) {
#toast-container > div {
View
11 tests/toastr.js
@@ -132,6 +132,7 @@
titleClass: 'toast-title',
messageClass: 'toast-message',
target: 'body',
+ closeHtml: '<button>&times;</button>',
newestOnTop: true
};
}
@@ -161,6 +162,7 @@
$toastElement = $('<div/>'),
$titleElement = $('<div/>'),
$messageElement = $('<div/>'),
+ $closeElement = $(options.closeHtml),
response = {
toastId: toastId,
state: 'visible',
@@ -183,6 +185,11 @@
$toastElement.append($messageElement);
}
+ if (options.closeButton) {
+ $closeElement.addClass('toast-close-button');
+ $toastElement.prepend($closeElement);
+ }
+
$toastElement.hide();
if (options.newestOnTop) {
$container.prepend($toastElement);
@@ -191,7 +198,9 @@
}
- $toastElement[options.showMethod]({ duration: options.showDuration, easing: options.showEasing, complete: options.onShown });
+ $toastElement[options.showMethod](
+ { duration: options.showDuration, easing: options.showEasing, complete: options.onShown }
+ );
if (options.timeOut > 0) {
intervalId = setTimeout(hideToast, options.timeOut);
}
View
134 tests/unit/toastr-tests.js
@@ -13,7 +13,7 @@
bottomLeft: 'toast-bottom-left',
topLeft: 'toast-top-left'
};
- var sampleMsg = 'I don\'t think they really exist'
+ var sampleMsg = 'I don\'t think they really exist';
var sampleTitle = 'ROUS';
var selectors = {
container: 'div#toast-container',
@@ -67,7 +67,6 @@
toastr.clear();
//Assert
setTimeout(function () {
- //console.log($container.children().length);
ok($container && $container.children().length === 0);
//Teardown
resetContainer();
@@ -86,7 +85,8 @@
$toast[2] = toastr.info(sampleMsg, sampleTitle + '-3-Visible');
//Assert
equal($toast[2].find('div.toast-title').html(), sampleTitle + '-3-Visible', 'Finds toast after a clear');
- ok($toast[2].find('div.toast-title').find(':visible'), 'Toast after a clear is visible'); //Teardown
+ ok($toast[2].find('div.toast-title').find(':visible'), 'Toast after a clear is visible');
+ //Teardown
resetContainer();
start();
}, delay);
@@ -101,7 +101,8 @@
//Act
setTimeout(function () {
//Assert
- equal($(selectors.container).length, 0, 'Toast container does not exist'); //Teardown
+ equal($(selectors.container).length, 0, 'Toast container does not exist');
+ //Teardown
resetContainer();
start();
}, delay);
@@ -126,20 +127,24 @@
test('info - pass title and message', 3, function () {
//Arrange
//Act
- var $toast = toastr.info(sampleMsg, sampleTitle); //Assert
+ var $toast = toastr.info(sampleMsg, sampleTitle);
+ //Assert
equal($toast.find('div.toast-title').html(), sampleTitle, 'Sets title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.info), 'Sets info icon'); //Teardown
+ ok($toast.hasClass(iconClasses.info), 'Sets info icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
test('info - pass message, but no title', 3, function () {
//Arrange
//Act
- var $toast = toastr.info(sampleMsg); //Assert
+ var $toast = toastr.info(sampleMsg);
+ //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets null title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.info), 'Sets info icon'); //Teardown
+ ok($toast.hasClass(iconClasses.info), 'Sets info icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
@@ -149,7 +154,8 @@
var $toast = toastr.info(); //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets null title');
equal($toast.find('div.toast-message').html(), null, 'Sets message');
- ok($toast.hasClass(iconClasses.info), 'Sets info icon'); //Teardown
+ ok($toast.hasClass(iconClasses.info), 'Sets info icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
@@ -157,30 +163,36 @@
test('warning - pass message and title', 3, function () {
//Arrange
//Act
- var $toast = toastr.warning(sampleMsg, sampleTitle); //Assert
+ var $toast = toastr.warning(sampleMsg, sampleTitle);
+ //Assert
equal($toast.find('div.toast-title').html(), sampleTitle, 'Sets title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.warning), 'Sets warning icon'); //Teardown
+ ok($toast.hasClass(iconClasses.warning), 'Sets warning icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
test('warning - pass message, but no title', 3, function () {
//Arrange
//Act
- var $toast = toastr.warning(sampleMsg); //Assert
+ var $toast = toastr.warning(sampleMsg);
+ //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets empty title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.warning), 'Sets warning icon'); //Teardown
+ ok($toast.hasClass(iconClasses.warning), 'Sets warning icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
test('warning - no message nor title', 3, function () {
//Arrange
//Act
- var $toast = toastr.warning(''); //Assert
+ var $toast = toastr.warning('');
+ //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets null title');
equal($toast.find('div.toast-message').length, 0, 'Sets empty message');
- ok($toast.hasClass(iconClasses.warning), 'Sets warning icon'); //Teardown
+ ok($toast.hasClass(iconClasses.warning), 'Sets warning icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
@@ -188,10 +200,12 @@
test('error - pass message and title', 3, function () {
//Arrange
//Act
- var $toast = toastr.error(sampleMsg, sampleTitle); //Assert
+ var $toast = toastr.error(sampleMsg, sampleTitle);
+ //Assert
equal($toast.find('div.toast-title').html(), sampleTitle, 'Sets title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.error), 'Sets error icon'); //Teardown
+ ok($toast.hasClass(iconClasses.error), 'Sets error icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
@@ -201,17 +215,20 @@
var $toast = toastr.error(sampleMsg); //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets empty title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.error), 'Sets error icon'); //Teardown
+ ok($toast.hasClass(iconClasses.error), 'Sets error icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
test('error - no message nor title', 3, function () {
//Arrange
//Act
- var $toast = toastr.error(''); //Assert
+ var $toast = toastr.error('');
+ //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets empty title');
equal($toast.find('div.toast-message').length, 0, 'Sets empty message');
- ok($toast.hasClass(iconClasses.error), 'Sets error icon'); //Teardown
+ ok($toast.hasClass(iconClasses.error), 'Sets error icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
@@ -219,27 +236,32 @@
test('success - pass message and title', 3, function () {
//Arrange
//Act
- var $toast = toastr.success(sampleMsg, sampleTitle); //Assert
+ var $toast = toastr.success(sampleMsg, sampleTitle);
+ //Assert
equal($toast.find('div.toast-title').html(), sampleTitle, 'Sets title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.success), 'Sets success icon'); //Teardown
+ ok($toast.hasClass(iconClasses.success), 'Sets success icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
test('success - pass message, but no title', 3, function () {
//Arrange
//Act
- var $toast = toastr.success(sampleMsg); //Assert
+ var $toast = toastr.success(sampleMsg);
+ //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets empty title');
equal($toast.find('div.toast-message').html(), sampleMsg, 'Sets message');
- ok($toast.hasClass(iconClasses.success), 'Sets success icon'); //Teardown
+ ok($toast.hasClass(iconClasses.success), 'Sets success icon');
+ //Teardown
$toast.remove();
clearContainerChildren();
});
test('success - no message nor title', 3, function () {
//Arrange
//Act
- var $toast = toastr.success(''); //Assert
+ var $toast = toastr.success('');
+ //Assert
equal($toast.find('div.toast-title').length, 0, 'Sets null title');
equal($toast.find('div.toast-message').length, 0, 'Sets empty message');
ok($toast.hasClass(iconClasses.success), 'Sets success icon'); //Teardown
@@ -247,6 +269,36 @@
clearContainerChildren();
});
+ module('closeButton', {
+ teardown: function () {
+ toastr.options.closeButton = false;
+ }
+ });
+ test('close button disabled', 2, function () {
+ //Arrange
+ toastr.options.closeButton = false;
+ //Act
+ var $toast = toastr.success('');
+ //Assert
+ equal($toast.find('button.toast-close-button').length, 0, 'close button should not exist with closeButton=false');
+ ok(!$toast.hasClass('toast-close'), 'does not set close class on toast');
+ //Teardown
+ $toast.remove();
+ clearContainerChildren();
+ });
+ test('close button enabled', 2, function () {
+ //Arrange
+ toastr.options.closeButton = true;
+ //Act
+ var $toast = toastr.success('');
+ //Assert
+ equal($toast.find('button.toast-close-button').length, 1, 'close button should exist with closeButton=true');
+ ok($toast.hasClass('toast-close'), 'sets close class on toast');
+ //Teardown
+ $toast.remove();
+ clearContainerChildren();
+ });
+
module('event');
asyncTest('event - onShown is executed', 1, function () {
// Arrange
@@ -353,22 +405,26 @@
test('Container - position top-right', 1, function () {
//Arrange
resetContainer();
- toastr.options.positionClass = positionClasses.topRight; //Act
+ toastr.options.positionClass = positionClasses.topRight;
+ //Act
var $toast = toastr.success(sampleMsg);
- var $container = toastr.getContainer(); //$(selectors.container)
+ var $container = toastr.getContainer();
//Assert
- ok($container.hasClass(positionClasses.topRight), 'Has position top right'); //Teardown
+ ok($container.hasClass(positionClasses.topRight), 'Has position top right');
+ //Teardown
$toast.remove();
resetContainer();
});
test('Container - position bottom-right', 1, function () {
//Arrange
resetContainer();
- toastr.options.positionClass = positionClasses.bottomRight; //Act
+ toastr.options.positionClass = positionClasses.bottomRight;
+ //Act
var $toast = toastr.success(sampleMsg);
- var $container = toastr.getContainer(); //$(selectors.container)
+ var $container = toastr.getContainer();
//Assert
- ok($container.hasClass(positionClasses.bottomRight), 'Has position bottom right'); //Teardown
+ ok($container.hasClass(positionClasses.bottomRight), 'Has position bottom right');
+ //Teardown
$toast.remove();
resetContainer();
});
@@ -376,22 +432,26 @@
//Arrange
resetContainer();
//$(selectors.container).remove()
- toastr.options.positionClass = positionClasses.bottomLeft; //Act
+ toastr.options.positionClass = positionClasses.bottomLeft;
+ //Act
var $toast = toastr.success(sampleMsg);
- var $container = toastr.getContainer(); //$(selectors.container)
+ var $container = toastr.getContainer();
//Assert
- ok($container.hasClass(positionClasses.bottomLeft), 'Has position bottom left'); //Teardown
+ ok($container.hasClass(positionClasses.bottomLeft), 'Has position bottom left');
+ //Teardown
$toast.remove();
resetContainer();
});
test('Container - position top-left', 1, function () {
//Arrange
resetContainer();
- toastr.options.positionClass = positionClasses.topLeft; //Act
+ toastr.options.positionClass = positionClasses.topLeft;
+ //Act
var $toast = toastr.success(sampleMsg);
- var $container = toastr.getContainer(); //$(selectors.container)
+ var $container = toastr.getContainer();
//Assert
- ok($container.hasClass(positionClasses.topLeft), 'Has position top left'); //Teardown
+ ok($container.hasClass(positionClasses.topLeft), 'Has position top left');
+ //Teardown
$toast.remove();
resetContainer();
});
View
47 toastr.css
@@ -13,6 +13,43 @@
color: #cccccc;
text-decoration: none;
}
+/*
+ https://github.com/twitter/bootstrap/blob/master/less/close.less
+ https://github.com/twitter/bootstrap/blob/master/less/alerts.less
+*/
+.toast-close-button {
+ position: relative;
+ right: -0.3em;
+ top: -0.3em;
+ float: right;
+ font-size: 20px;
+ font-weight: bold;
+ color: #ffffff;
+ -webkit-text-shadow: 0 1px 0 #ffffff;
+ text-shadow: 0 1px 0 #ffffff;
+ opacity: 0.8;
+ -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
+ filter: alpha(opacity=80);
+}
+.toast-close-button:hover,
+.toast-close-button:focus {
+ color: #000000;
+ text-decoration: none;
+ cursor: pointer;
+ opacity: 0.4;
+ -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
+ filter: alpha(opacity=40);
+}
+/*Additional properties for button version
+ iOS requires the button element instead of an anchor tag.
+ If you want the anchor version, it requires `href="#"`.*/
+button.toast-close-button {
+ padding: 0;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+ -webkit-appearance: none;
+}
.toast-top-full-width {
top: 0;
right: 0;
@@ -42,6 +79,8 @@
#toast-container {
position: fixed;
z-index: 999999;
+ /*overrides*/
+
}
#toast-container * {
-moz-box-sizing: border-box;
@@ -112,12 +151,20 @@
padding: 8px 8px 8px 50px;
width: 11em;
}
+ #toast-container .toast-close-button {
+ right: -0.2em;
+ top: -0.2em;
+ }
}
@media all and (min-width: 241px) and (max-width: 480px) {
#toast-container > div {
padding: 8px 8px 8px 50px;
width: 18em;
}
+ #toast-container .toast-close-button {
+ right: -0.2em;
+ top: -0.2em;
+ }
}
@media all and (min-width: 481px) and (max-width: 768px) {
#toast-container > div {
View
11 toastr.js
@@ -132,6 +132,7 @@
titleClass: 'toast-title',
messageClass: 'toast-message',
target: 'body',
+ closeHtml: '<button>&times;</button>',
newestOnTop: true
};
}
@@ -161,6 +162,7 @@
$toastElement = $('<div/>'),
$titleElement = $('<div/>'),
$messageElement = $('<div/>'),
+ $closeElement = $(options.closeHtml),
response = {
toastId: toastId,
state: 'visible',
@@ -183,6 +185,11 @@
$toastElement.append($messageElement);
}
+ if (options.closeButton) {
+ $closeElement.addClass('toast-close-button');
+ $toastElement.prepend($closeElement);
+ }
+
$toastElement.hide();
if (options.newestOnTop) {
$container.prepend($toastElement);
@@ -191,7 +198,9 @@
}
- $toastElement[options.showMethod]({ duration: options.showDuration, easing: options.showEasing, complete: options.onShown });
+ $toastElement[options.showMethod](
+ { duration: options.showDuration, easing: options.showEasing, complete: options.onShown }
+ );
if (options.timeOut > 0) {
intervalId = setTimeout(hideToast, options.timeOut);
}
View
98 toastr.less
@@ -1,21 +1,21 @@
// Mix-ins
.borderRadius(@radius) {
- -moz-border-radius: @radius;
+ -moz-border-radius: @radius;
-webkit-border-radius: @radius;
- border-radius: @radius;
+ border-radius: @radius;
}
.boxShadow(@boxShadow) {
- -moz-box-shadow: @boxShadow;
+ -moz-box-shadow: @boxShadow;
-webkit-box-shadow: @boxShadow;
- box-shadow: @boxShadow;
+ box-shadow: @boxShadow;
}
.opacity(@opacity) {
@opacityPercent: @opacity * 100;
opacity: @opacity;
-ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(Opacity=@{opacityPercent})";
- filter: ~"alpha(opacity=@{opacityPercent})";
+ filter: ~"alpha(opacity=@{opacityPercent})";
}
.wordWrap(@wordWrap: break-word) {
@@ -47,12 +47,51 @@
color: @white;
}
- a:hover {
- color: @light-grey;
+ a:hover {
+ color: @light-grey;
+ text-decoration: none;
+ }
+}
+
+//#region close button
+/*
+ https://github.com/twitter/bootstrap/blob/master/less/close.less
+ https://github.com/twitter/bootstrap/blob/master/less/alerts.less
+*/
+.toast-close-button {
+ position: relative;
+ right: -0.3em;
+ top: -0.3em;
+ float: right;
+ font-size: 20px;
+ font-weight: bold;
+ color: @white;
+ -webkit-text-shadow: 0 1px 0 rgba(255,255,255,1);
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
+ .opacity(0.8);
+
+ &:hover,
+ &:focus {
+ color: @black;
text-decoration: none;
+ cursor: pointer;
+ .opacity(0.4);
}
}
+/*Additional properties for button version
+ iOS requires the button element instead of an anchor tag.
+ If you want the anchor version, it requires `href="#"`.*/
+button.toast-close-button {
+ padding: 0;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+ -webkit-appearance: none;
+}
+
+//#endregion
+
.toast-top-full-width {
top: 0;
right: 0;
@@ -90,11 +129,11 @@
z-index: 999999;
* {
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
box-sizing: border-box;
}
-
+
> div {
margin: 0 0 6px;
padding: 15px 15px 15px 50px;
@@ -129,7 +168,7 @@
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;
}
- // overrides
+ /*overrides*/
&.toast-top-full-width > div,
&.toast-bottom-full-width > div {
width: 96%;
@@ -160,22 +199,39 @@
/*Responsive Design*/
@media all and (max-width: 240px) {
- #toast-container > div {
- padding: 8px 8px 8px 50px;
- width: 11em;
+ #toast-container {
+
+ > div {
+ padding: 8px 8px 8px 50px;
+ width: 11em;
+ }
+
+ & .toast-close-button {
+ right: -0.2em;
+ top: -0.2em;
+ }
}
}
@media all and (min-width: 241px) and (max-width: 480px) {
- #toast-container > div {
- padding: 8px 8px 8px 50px;
- width: 18em;
+ #toast-container {
+ > div {
+ padding: 8px 8px 8px 50px;
+ width: 18em;
+ }
+
+ & .toast-close-button {
+ right: -0.2em;
+ top: -0.2em;
+ }
}
}
@media all and (min-width: 481px) and (max-width: 768px) {
- #toast-container > div {
- padding: 15px 15px 15px 50px;
- width: 25em;
+ #toast-container {
+ > div {
+ padding: 15px 15px 15px 50px;
+ width: 25em;
+ }
}
-}
+}
View
2  toastr.min.css
@@ -1 +1 @@
-.toast-title{font-weight:bold}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#fff}.toast-message a:hover{color:#ccc;text-decoration:none}.toast-top-full-width{top:0;right:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{top:12px;left:12px}.toast-top-right{top:12px;right:12px}.toast-bottom-right{right:12px;bottom:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999}#toast-container *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#toast-container>div{margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;-moz-border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;border-radius:3px 3px 3px 3px;background-position:15px center;background-repeat:no-repeat;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}#toast-container>:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCX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DfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=")!important}#toast-container>.toast-success{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==")!important}#toast-container>.toast-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=")!important}#toast-container.toast-top-full-width>div,#toast-container.toast-bottom-full-width>div{width:96%;margin:auto}.toast{background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}@media all and (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}}@media all and (min-width:241px)and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}}@media all and (min-width:481px)and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}}
+.toast-title{font-weight:bold}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#fff}.toast-message a:hover{color:#ccc;text-decoration:none}.toast-close-button{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:bold;color:#fff;-webkit-text-shadow:0 1px 0 #fff;text-shadow:0 1px 0 #fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}.toast-close-button:hover,.toast-close-button:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}button.toast-close-button{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.toast-top-full-width{top:0;right:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{top:12px;left:12px}.toast-top-right{top:12px;right:12px}.toast-bottom-right{right:12px;bottom:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999}#toast-container *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#toast-container>div{margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;-moz-border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;border-radius:3px 3px 3px 3px;background-position:15px center;background-repeat:no-repeat;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}#toast-container>:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=")!important}#toast-container>.toast-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=")!important}#toast-container>.toast-success{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==")!important}#toast-container>.toast-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=")!important}#toast-container.toast-top-full-width>div,#toast-container.toast-bottom-full-width>div{width:96%;margin:auto}.toast{background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}@media all and (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container .toast-close-button{right:-.2em;top:-.2em}}@media all and (min-width:241px)and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container .toast-close-button{right:-.2em;top:-.2em}}@media all and (min-width:481px)and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}}
View
2  toastr.min.js
@@ -1,2 +1,2 @@
-(function(n){n(["jquery"],function(n){return function(){function l(n,t,f){return u({type:r.error,iconClass:i().iconClasses.error,message:n,optionsOverride:f,title:t})}function a(n,t,f){return u({type:r.info,iconClass:i().iconClasses.info,message:n,optionsOverride:f,title:t})}function v(n){e=n}function y(n,t,f){return u({type:r.success,iconClass:i().iconClasses.success,message:n,optionsOverride:f,title:t})}function p(n,t,f){return u({type:r.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:f,title:t})}function w(r){var u=i();if(t||f(u),r&&n(":focus",r).length===0){r[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){c(r)}});return}t.children().length&&t[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){t.remove()}})}function b(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:undefined,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:undefined,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",newestOnTop:!0}}function h(n){e&&e(n)}function u(r){function l(){if(!(n(":focus",e).length>0))return e[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){c(e),u.onHidden&&u.onHidden(),s.state="hidden",s.endTime=new Date,h(s)}})}function w(){(u.timeOut>0||u.extendedTimeOut>0)&&(v=setTimeout(l,u.extendedTimeOut))}function b(){clearTimeout(v),e.stop(!0,!0)[u.showMethod]({duration:u.showDuration,easing:u.showEasing})}var u=i(),a=r.iconClass||u.iconClass;typeof r.optionsOverride!="undefined"&&(u=n.extend(u,r.optionsOverride),a=r.optionsOverride.iconClass||a),o++,t=f(u);var v=null,e=n("<div/>"),y=n("<div/>"),p=n("<div/>"),s={toastId:o,state:"visible",startTime:new Date,options:u,map:r};return r.iconClass&&e.addClass(u.toastClass).addClass(a),r.title&&(y.append(r.title).addClass(u.titleClass),e.append(y)),r.message&&(p.append(r.message).addClass(u.messageClass),e.append(p)),e.hide(),u.newestOnTop?t.prepend(e):t.append(e),e[u.showMethod]({duration:u.showDuration,easing:u.showEasing,complete:u.onShown}),u.timeOut>0&&(v=setTimeout(l,u.timeOut)),e.hover(b,w),!u.onclick&&u.tapToDismiss&&e.click(l),u.onclick&&e.click(function(){u.onclick()&&l()}),h(s),u.debug&&console&&console.log(s),e}function f(r){return(r||(r=i()),t=n("#"+r.containerId),t.length)?t:(t=n("<div/>").attr("id",r.containerId).addClass(r.positionClass),t.appendTo(n(r.target)),t)}function i(){return n.extend({},b(),s.options)}function c(n){(t||(t=f()),n.is(":visible"))||(n.remove(),n=null,t.children().length===0&&t.remove())}var t,e,o=0,r={error:"error",info:"info",success:"success",warning:"warning"},s={clear:w,error:l,getContainer:f,info:a,options:{},subscribe:v,success:y,version:"2.0.0rc1",warning:p};return s}()})})(typeof define=="function"&&define.amd?define:function(n,t){typeof module!="undefined"&&module.exports?module.exports=t(require(n[0])):window.toastr=t(window.jQuery)});
+(function(n){n(["jquery"],function(n){return function(){function l(n,t,f){return u({type:r.error,iconClass:i().iconClasses.error,message:n,optionsOverride:f,title:t})}function a(n,t,f){return u({type:r.info,iconClass:i().iconClasses.info,message:n,optionsOverride:f,title:t})}function v(n){e=n}function y(n,t,f){return u({type:r.success,iconClass:i().iconClasses.success,message:n,optionsOverride:f,title:t})}function p(n,t,f){return u({type:r.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:f,title:t})}function w(r){var u=i();if(t||f(u),r&&n(":focus",r).length===0){r[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){c(r)}});return}t.children().length&&t[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){t.remove()}})}function b(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:undefined,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:undefined,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:"<button>&times;<\/button>",newestOnTop:!0}}function h(n){e&&e(n)}function u(r){function l(){if(!(n(":focus",e).length>0))return e[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){c(e),u.onHidden&&u.onHidden(),s.state="hidden",s.endTime=new Date,h(s)}})}function b(){(u.timeOut>0||u.extendedTimeOut>0)&&(v=setTimeout(l,u.extendedTimeOut))}function k(){clearTimeout(v),e.stop(!0,!0)[u.showMethod]({duration:u.showDuration,easing:u.showEasing})}var u=i(),a=r.iconClass||u.iconClass;typeof r.optionsOverride!="undefined"&&(u=n.extend(u,r.optionsOverride),a=r.optionsOverride.iconClass||a),o++,t=f(u);var v=null,e=n("<div/>"),y=n("<div/>"),p=n("<div/>"),w=n(u.closeHtml),s={toastId:o,state:"visible",startTime:new Date,options:u,map:r};return r.iconClass&&e.addClass(u.toastClass).addClass(a),r.title&&(y.append(r.title).addClass(u.titleClass),e.append(y)),r.message&&(p.append(r.message).addClass(u.messageClass),e.append(p)),u.closeButton&&(w.addClass("toast-close-button"),e.prepend(w)),e.hide(),u.newestOnTop?t.prepend(e):t.append(e),e[u.showMethod]({duration:u.showDuration,easing:u.showEasing,complete:u.onShown}),u.timeOut>0&&(v=setTimeout(l,u.timeOut)),e.hover(k,b),!u.onclick&&u.tapToDismiss&&e.click(l),u.onclick&&e.click(function(){u.onclick()&&l()}),h(s),u.debug&&console&&console.log(s),e}function f(r){return(r||(r=i()),t=n("#"+r.containerId),t.length)?t:(t=n("<div/>").attr("id",r.containerId).addClass(r.positionClass),t.appendTo(n(r.target)),t)}function i(){return n.extend({},b(),s.options)}function c(n){(t||(t=f()),n.is(":visible"))||(n.remove(),n=null,t.children().length===0&&t.remove())}var t,e,o=0,r={error:"error",info:"info",success:"success",warning:"warning"},s={clear:w,error:l,getContainer:f,info:a,options:{},subscribe:v,success:y,version:"2.0.0rc1",warning:p};return s}()})})(typeof define=="function"&&define.amd?define:function(n,t){typeof module!="undefined"&&module.exports?module.exports=t(require(n[0])):window.toastr=t(window.jQuery)});
//@ sourceMappingURL=toastr.min.js.map
View
4 toastr.min.js.map
@@ -2,7 +2,7 @@
"version":3,
"file":"toastr.min.js",
"lineCount":1,
-"mappings":"CASG,QAAS,CAACA,CAAD,CAAS,CACjBA,CAAM,CAAC,CAAC,QAAD,CAAU,CAAE,QAAS,CAACC,CAAD,CAAI,CAC5B,OAAQ,QAAS,CAAA,CAAG,CA2BhBC,SAASA,CAAK,CAACC,CAAO,CAAEC,CAAK,CAAEC,CAAjB,CAAkC,CAC5C,OAAOC,CAAM,CAAC,CACV,IAAI,CAAEC,CAASL,MAAM,CACrB,SAAS,CAAEM,CAAU,CAAA,CAAEC,YAAYP,MAAM,CACzC,OAAO,CAAEC,CAAO,CAChB,eAAe,CAAEE,CAAe,CAChC,KAAK,CAAED,CALG,CAAD,CAD+B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CAAA,CAtR0B,CAA1B,CADW,EAyRpB,CAAC,OAAOhF,MAAO,EAAI,UAAW,EAAGA,MAAMkF,IAAK,CAAElF,MAAO,CAAE,QAAS,CAACmF,CAAI,CAAEC,CAAP,CAAgB,CACzE,OAAOC,MAAO,EAAI,WAAY,EAAGA,MAAMC,QAA3C,CACID,MAAMC,QAAS,CAAEF,CAAO,CAACG,OAAO,CAACJ,CAAK,CAAA,CAAA,CAAN,CAAR,CAD5B,CAGIK,MAAOR,OAAU,CAAEI,CAAO,CAACI,MAAOC,OAAR,CAJ+C,CAAhF,C",
"sources":["toastr.js"],
-"names":["define","$","error","message","title","optionsOverride","notify","toastType","getOptions","iconClasses","info","subscribe","callback","listener","success","warning","clear","$toastElement","options","$container","getContainer","length","hideMethod","hideDuration","hideEasing","complete","removeToast","children","remove","getDefaults","undefined","publish","args","map","hideToast","onHidden","response","state","endTime","Date","delayedhideToast","timeOut","extendedTimeOut","intervalId","setTimeout","stickAround","clearTimeout","stop","showMethod","showDuration","showEasing","iconClass","extend","toastId","$titleElement","$messageElement","addClass","toastClass","append","titleClass","messageClass","hide","newestOnTop","prepend","onShown","hover","onclick","tapToDismiss","click","debug","console","log","containerId","attr","positionClass","appendTo","target","toastr","is","amd","deps","factory","module","exports","require","window","jQuery"]
+"names":["define","$","error","message","title","optionsOverride","notify","toastType","getOptions","iconClasses","info","subscribe","callback","listener","success","warning","clear","$toastElement","options","$container","getContainer","length","hideMethod","hideDuration","hideEasing","complete","removeToast","children","remove","getDefaults","undefined","publish","args","map","hideToast","onHidden","response","state","endTime","Date","delayedhideToast","timeOut","extendedTimeOut","intervalId","setTimeout","stickAround","clearTimeout","stop","showMethod","showDuration","showEasing","iconClass","extend","toastId","$titleElement","$messageElement","$closeElement","closeHtml","addClass","toastClass","append","titleClass","messageClass","closeButton","prepend","hide","newestOnTop","onShown","hover","onclick","tapToDismiss","click","debug","console","log","containerId","attr","positionClass","appendTo","target","toastr","is","amd","deps","factory","module","exports","require","window","jQuery"]
}
Please sign in to comment.
Something went wrong with that request. Please try again.