aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-07-12 09:16:03 -0400
committerScott González <scott.gonzalez@gmail.com>2011-07-12 09:16:22 -0400
commit0dc4a487628c674868f786db73db7f0c0c2b02b2 (patch)
tree376237e7b3b50af083ca13c094ec43ef7ec45de7 /ui
parent954419f94e5df411e9c52adaf51d60dc2903b7d2 (diff)
downloadjquery-ui-0dc4a487628c674868f786db73db7f0c0c2b02b2.tar.gz
jquery-ui-0dc4a487628c674868f786db73db7f0c0c2b02b2.zip
Dialog: Append the dialog to the body early to make sure styles from the classes get applied.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.dialog.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 0eba39842..e9cf67540 100644
--- a/ui/jquery.ui.dialog.js
+++ b/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();
}