mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
only append modal to dom if not already present
This commit is contained in:
parent
5a33c1b96e
commit
76cadd1d2a
1 changed files with 2 additions and 1 deletions
3
js/bootstrap-modal.js
vendored
3
js/bootstrap-modal.js
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue