mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 10:34:07 +02:00
only append modal to dom if not already present
This commit is contained in:
3
js/bootstrap-modal.js
vendored
3
js/bootstrap-modal.js
vendored
@@ -51,8 +51,9 @@
|
|||||||
backdrop.call(this, function () {
|
backdrop.call(this, function () {
|
||||||
var transition = $.support.transition && that.$element.hasClass('fade')
|
var transition = $.support.transition && that.$element.hasClass('fade')
|
||||||
|
|
||||||
|
!that.$element.parent() && that.$element.appendTo(document.body) //don't move modals dom position
|
||||||
|
|
||||||
that.$element
|
that.$element
|
||||||
.appendTo(document.body)
|
|
||||||
.show()
|
.show()
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
|
Reference in New Issue
Block a user