Skip to content

Commit

Permalink
Merge pull request #4 from mholt/patch-1
Browse files Browse the repository at this point in the history
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 9c70147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toastr.js
Expand Up @@ -89,6 +89,9 @@
}

var fadeAway = function() {
if ($(':focus', $toastElement).length > 0)
return

var fade = function() {
return $toastElement.fadeOut(options.fadeOut)
}
Expand Down

0 comments on commit 9c70147

Please sign in to comment.