mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Fixed #3664: Dialog fails to init on removed elements.
This commit is contained in:
parent
4160a67a8a
commit
0c3bd6aff5
@ -37,6 +37,7 @@ $.widget("ui.dialog", {
|
||||
options = this.options,
|
||||
|
||||
uiDialogContent = this.element
|
||||
.appendTo(document.body)
|
||||
.removeAttr('title')
|
||||
.addClass(
|
||||
'ui-dialog-content ' +
|
||||
@ -104,7 +105,6 @@ $.widget("ui.dialog", {
|
||||
.prependTo(uiDialogTitlebar),
|
||||
|
||||
uiDialog = (this.uiDialog = uiDialogContainer.parent())
|
||||
.appendTo(document.body)
|
||||
.hide()
|
||||
.addClass(
|
||||
'ui-dialog ' +
|
||||
|
Loading…
Reference in New Issue
Block a user