Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/bootstrap-modal.js2
1 files changed, 1 insertions, 1 deletions
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()