From fbdb9f08a92ea5496314dcfb25cfcb2b2cad2a8c Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sat, 28 Jun 2008 13:48:01 +0000 Subject: [PATCH] fixed #3012 - Dialog causing iframe load event to fire in firefox 2 --- ui/ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index b989fedf9..a7970126f 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -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(); -- 2.39.5