From c090802cc1f92736288dafbea95bb2783392975e Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 4 Oct 2010 09:18:21 -0400 Subject: Revert "Dialog: Don't change DOM position on open. Fixes #6137 - dialog('open') causes form elements to reset on IE7." This reverts commit 67b1db14c964418ce8b1fd760d54761040cc32af. Reverting so I can commit again with the proper author. --- ui/jquery.ui.dialog.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/jquery.ui.dialog.js') diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index b000bf5bd..86dfa5fa1 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -309,6 +309,9 @@ $.widget("ui.dialog", { uiDialog = self.uiDialog; self.overlay = options.modal ? new $.ui.dialog.overlay(self) : null; + if (uiDialog.next().length) { + uiDialog.appendTo('body'); + } self._size(); self._position(options.position); uiDialog.show(options.show); -- cgit v1.2.3