From: Richard Worth Date: Sat, 28 Jun 2008 13:48:01 +0000 (+0000) Subject: fixed #3012 - Dialog causing iframe load event to fire in firefox 2 X-Git-Tag: 1.5.2~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fbdb9f08a92ea5496314dcfb25cfcb2b2cad2a8c;p=jquery-ui.git fixed #3012 - Dialog causing iframe load event to fire in firefox 2 --- 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();