Dialog: Fixed #3664: Dialog fails to init on removed elements.

This commit is contained in:
Scott González 2008-12-13 15:12:34 +00:00
parent 4160a67a8a
commit 0c3bd6aff5

View File

@ -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 ' +