2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

only append modal to dom if not already present

This commit is contained in:
Jacob Thornton
2012-01-08 14:36:41 -08:00
parent 5a33c1b96e
commit 76cadd1d2a
+2 -1
View File
@@ -51,8 +51,9 @@
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
.appendTo(document.body)
.show()
if (transition) {