Commit 76cadd1d authored by Jacob Thornton's avatar Jacob Thornton

only append modal to dom if not already present

parent 5a33c1b9
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment