From dec666cd03c56bf976b44264fe81e6057058b159 Mon Sep 17 00:00:00 2001 From: Timothy Ferrell Date: Sun, 22 Feb 2015 14:01:40 -0500 Subject: [PATCH 1/2] Updating demo to use bootstrap styling. --- demo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo.html b/demo.html index 4de7b2be..35d57d84 100644 --- a/demo.html +++ b/demo.html @@ -201,7 +201,7 @@

Links

var getMessageWithClearButton = function (msg) { msg = msg ? msg : 'Clear itself?'; - msg += '

'; + msg += '

'; return msg; }; From bf1f0383b5c7847518d2ff66662c9b582611f0a7 Mon Sep 17 00:00:00 2001 From: Stephen Bero Date: Mon, 9 Mar 2015 17:19:07 -0600 Subject: [PATCH 2/2] Issue #261: Fixed an issue in the demo, where additional operations for the button delegates in the $(#showtoast).click function were triggering a console error. --- demo.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo.html b/demo.html index 91b9b7c6..816f097f 100644 --- a/demo.html +++ b/demo.html @@ -287,6 +287,11 @@

Links

var $toast = toastr[shortCutFunction](msg, title); // Wire up an event handler to a button in the toast, if it exists $toastlast = $toast; + + if(typeof $toast === 'undefined'){ + return; + } + if ($toast.find('#okBtn').length) { $toast.delegate('#okBtn', 'click', function () { alert('you clicked me. i was toast #' + toastIndex + '. goodbye!');