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