Permalink
Browse files

Merge pull request #4 from mholt/patch-1

Proposed two useful options. Merging this change in so the toasts stay sticky and dont fade away of focus is in an element in the toast.
  • Loading branch information...
johnpapa committed May 13, 2012
2 parents 363fc1e + c269aeb commit 9c70147f7965346f99ac57e4a85ee9253ce532de
Showing with 3 additions and 0 deletions.
  1. +3 −0 toastr.js
View
@@ -89,6 +89,9 @@
}
var fadeAway = function() {
+ if ($(':focus', $toastElement).length > 0)
+ return
+
var fade = function() {
return $toastElement.fadeOut(options.fadeOut)
}

0 comments on commit 9c70147

Please sign in to comment.