diff options
| author | Jacob Thornton <[email protected]> | 2011-09-10 14:04:22 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-09-10 14:04:22 -0700 |
| commit | 5f65df9e2db7c16c3c64930331a467e18501e20c (patch) | |
| tree | 317a508fe3b3a79f7b06e273e4d57a5199dd7e0c /js/bootstrap-modal.js | |
| parent | 5bc455d3707b87960d32c0672f5afb3b31173ec8 (diff) | |
| download | bootstrap-5f65df9e2db7c16c3c64930331a467e18501e20c.tar.xz bootstrap-5f65df9e2db7c16c3c64930331a467e18501e20c.zip | |
add some more events to alerts and modal and update docs
Diffstat (limited to 'js/bootstrap-modal.js')
| -rw-r--r-- | js/bootstrap-modal.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index 54cbad4b1..de972a8aa 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -66,7 +66,7 @@ .show() setTimeout(function () { - that.$element.addClass('in') + that.$element.addClass('in').trigger('modal:shown') that.$backdrop && that.$backdrop.addClass('in') }, 1) @@ -86,8 +86,10 @@ this.$element.removeClass('in') function removeElement () { - that.$element.unbind(transitionEnd) - that.$element.detach() + that.$element + .unbind(transitionEnd) + .detach() + .trigger('modal:hidden') } $.support.transition && this.$element.hasClass('fade') ? |
