]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Append the dialog to the body early to make sure styles from the classes...
authorScott González <scott.gonzalez@gmail.com>
Tue, 12 Jul 2011 13:16:03 +0000 (09:16 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 12 Jul 2011 13:16:22 +0000 (09:16 -0400)
ui/jquery.ui.dialog.js

index 0eba39842ba5819b23f3082cfad09206fef27bd5..e9cf67540eb5a11e16316d778ffaeef139f4a787 100644 (file)
@@ -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();
                }