From 12d3c2fe74bbe2570e47a2c8d7154a3011bd0770 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 28 Jan 2012 12:08:41 -0800 Subject: fix z-index issue with modals for popovers,tooltips,and dropdowns --- js/bootstrap-modal.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/bootstrap-modal.js') diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index 91daa8af67..ba64368b2d 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 -- cgit v1.2.3