dialog - fixed autoOpen false in Safari for disconnected element - .appendTo(body) before .hide()

This commit is contained in:
Richard Worth 2008-06-09 03:38:54 +00:00
parent 0d74c8463b
commit 7a3f5e5a14

View File

@ -54,8 +54,8 @@ $.widget("ui.dialog", {
.prependTo(uiDialogContainer), .prependTo(uiDialogContainer),
uiDialog = (this.uiDialog = uiDialogContainer.parent()) uiDialog = (this.uiDialog = uiDialogContainer.parent())
.hide()
.appendTo(document.body) .appendTo(document.body)
.hide()
.addClass('ui-dialog') .addClass('ui-dialog')
.addClass(options.dialogClass) .addClass(options.dialogClass)
// add content classes to dialog // add content classes to dialog