aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-modal.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-01-28 12:08:41 -0800
committerJacob Thornton <[email protected]>2012-01-28 12:08:41 -0800
commit12d3c2fe74bbe2570e47a2c8d7154a3011bd0770 (patch)
tree8805a449345adbee6ac434a45bc8b4c2882c959b /js/bootstrap-modal.js
parentc2c02d104c5e5a96330cf00a727d62687d863e02 (diff)
downloadbootstrap-12d3c2fe74bbe2570e47a2c8d7154a3011bd0770.tar.xz
bootstrap-12d3c2fe74bbe2570e47a2c8d7154a3011bd0770.zip
fix z-index issue with modals for popovers,tooltips,and dropdowns
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 91daa8af6..ba64368b2 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -44,6 +44,8 @@
if (this.isShown) return
+ $('body').addClass('modal-open')
+
this.isShown = true
this.$element.trigger('show')
@@ -77,6 +79,8 @@
var that = this
this.isShown = false
+ $('body').removeClass('modal-open')
+
escape.call(this)
this.$element