diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-02-17 08:04:26 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-02-17 08:04:26 +0400 |
commit | 792059b7adf65843a7befdd0d6a5b3b57aeb6d61 (patch) | |
tree | b22e5652e72f53b9acdcf50857bf9825992faa64 /js | |
parent | a8c478e05189d195d4b921c5d0eb6c601ea35711 (diff) |
fix alerts
Diffstat (limited to 'js')
-rw-r--r-- | js/bootstrap-alert.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/bootstrap-alert.js b/js/bootstrap-alert.js index 56d89c2986..1d69c5f533 100644 --- a/js/bootstrap-alert.js +++ b/js/bootstrap-alert.js @@ -51,11 +51,14 @@ $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) - $parent.removeClass('in') + $parent + .trigger('close') + .removeClass('in') function removeElement() { - $parent.remove() - $parent.trigger('closed') + $parent + .trigger('closed') + .remove() } $.support.transition && $parent.hasClass('fade') ? |