]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed #3012 - Dialog causing iframe load event to fire in firefox 2
authorRichard Worth <rdworth@gmail.com>
Sat, 28 Jun 2008 13:48:01 +0000 (13:48 +0000)
committerRichard Worth <rdworth@gmail.com>
Sat, 28 Jun 2008 13:48:01 +0000 (13:48 +0000)
ui/ui.dialog.js

index b989fedf961d2b8e06657c340be53018c4671692..a7970126f0a7fb9a3f85ce18066c0c425338a07e 100644 (file)
@@ -245,7 +245,7 @@ $.widget("ui.dialog", {
                if (this.isOpen) { return; }
                
                this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
-               this.uiDialog.appendTo('body');
+               (this.uiDialog.next().length > 0) && this.uiDialog.appendTo('body');
                this.position(this.options.position);
                this.uiDialog.show(this.options.show);
                this.options.autoResize && this.size();