diff options
author | Jonathan Ingram <jonathan.b.ingram@gmail.com> | 2011-12-22 09:41:26 +0400 |
---|---|---|
committer | Jonathan Ingram <jonathan.b.ingram@gmail.com> | 2011-12-22 09:41:26 +0400 |
commit | 5de1e39a8fba831faa170f46e868068fa069dd0e (patch) | |
tree | f84dbc919ff1382a6ef9f872cbda03dbe9f6a779 /js/bootstrap-alert.js | |
parent | 9fb380151d477f1741b7609ade7a9e7fd5450b2c (diff) |
From #822
Diffstat (limited to 'js/bootstrap-alert.js')
-rw-r--r-- | js/bootstrap-alert.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/bootstrap-alert.js b/js/bootstrap-alert.js index 90961cdd39..1ce8f01bff 100644 --- a/js/bootstrap-alert.js +++ b/js/bootstrap-alert.js @@ -39,6 +39,8 @@ , selector = $this.attr('data-target') || $this.attr('href') , $parent = $(selector) + $parent.trigger('close') + e && e.preventDefault() $parent.length || ($parent = $this.hasClass('alert-message') ? $this : $this.parent()) @@ -47,6 +49,8 @@ function removeElement() { $parent.remove() + + $parent.trigger('closed') } $.support.transition && $parent.hasClass('fade') ? |