Skip to content
Permalink
Browse files

Dialog: Append the dialog to the body early to make sure styles from …

…the classes get applied.
  • Loading branch information...
scottgonzalez committed Jul 12, 2011
1 parent 954419f commit 0dc4a487628c674868f786db73db7f0c0c2b02b2
Showing with 2 additions and 3 deletions.
  1. +2 −3 ui/jquery.ui.dialog.js
@@ -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();
}

0 comments on commit 0dc4a48

Please sign in to comment.
You can’t perform that action at this time.