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 = $('
').appendTo('body'), - $baseBackdrop = $('').appendTo('body'); + var $baseModal = $('').appendTo($.fn.modal.defaults.manager), + $baseBackdrop = $('').appendTo($.fn.modal.defaults.manager); baseIndex['modal'] = +$baseModal.css('z-index'); baseIndex['backdrop'] = +$baseBackdrop.css('z-index');