]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix modal insertion boolean
authorJacob Thornton <jacobthornton@gmail.com>
Sun, 8 Jan 2012 22:38:21 +0000 (14:38 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Sun, 8 Jan 2012 22:38:21 +0000 (14:38 -0800)
js/bootstrap-modal.js

index 670d55c4ec913353d6666568c49fe3611decc3df..df4f3c7643e564bc6ec7b8562d08f58e35f602fd 100644 (file)
@@ -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()