mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Dialog: Append the dialog to the body early to make sure styles from the classes get applied.
This commit is contained in:
5
ui/jquery.ui.dialog.js
vendored
5
ui/jquery.ui.dialog.js
vendored
@@ -108,7 +108,8 @@ $.widget("ui.dialog", {
|
||||
})
|
||||
.mousedown(function( event ) {
|
||||
self.moveToTop( false, event );
|
||||
}),
|
||||
})
|
||||
.appendTo( "body" ),
|
||||
|
||||
uiDialogContent = self.element
|
||||
.show()
|
||||
@@ -155,8 +156,6 @@ $.widget("ui.dialog", {
|
||||
self._createButtons( options.buttons );
|
||||
self._isOpen = false;
|
||||
|
||||
uiDialog.appendTo( document.body );
|
||||
|
||||
if ( $.fn.bgiframe ) {
|
||||
uiDialog.bgiframe();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user