From ed6023c6285e8adb094d3a50f87373f95b29c4e4 Mon Sep 17 00:00:00 2001 From: Benoit Date: Wed, 26 Feb 2014 19:04:56 +0100 Subject: [PATCH] Compute z-index where modals will be inserted This change ensures that the z-index of both the modal and its backdrop are computed according to the same CSS rules that will apply once the actual elements are added to the DOM. This in fact fixes modals for people who use a prefixed version of bootstrap: $.fn.modal.defaults.manager = '.bootstrap-css'; --- js/bootstrap-modalmanager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-modalmanager.js b/js/bootstrap-modalmanager.js index 94f327b..d9d61bf 100644 --- a/js/bootstrap-modalmanager.js +++ b/js/bootstrap-modalmanager.js @@ -363,8 +363,8 @@ return function (type, pos) { if (typeof zIndexFactor === 'undefined'){ - var $baseModal = $('