From: Jacob Thornton Date: Sun, 8 Jan 2012 22:38:21 +0000 (-0800) Subject: fix modal insertion boolean X-Git-Tag: v2.0.0~6^2~313^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa0c4acd80562645ae85ef9a76f6b45e778d7acd;p=thirdparty%2Fbootstrap.git fix modal insertion boolean --- diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index 670d55c4ec..df4f3c7643 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -51,7 +51,7 @@ backdrop.call(this, function () { var transition = $.support.transition && that.$element.hasClass('fade') - !that.$element.parent() && that.$element.appendTo(document.body) //don't move modals dom position + !that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position that.$element .show()