From 6f200e7e3fc1fe62e8c401d68121721f9fe9d55d Mon Sep 17 00:00:00 2001 From: Jean Mertz Date: Thu, 22 Sep 2011 11:05:41 +0300 Subject: [PATCH] Allow for modal (and backdrop) elements to be placed inside a parent --- js/bootstrap-modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index e0b77bf251f7..5c4738f7b3d3 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -82,7 +82,7 @@ escape.call(this) backdrop.call(this, function () { that.$element - .appendTo(document.body) + .appendTo(that.settings.parent || document.body) .show() if ($.support.transition && that.$element.hasClass('fade')) { @@ -137,7 +137,7 @@ var doAnimate = $.support.transition && animate this.$backdrop = $('