diff options
author | Richard Worth <rdworth@gmail.com> | 2008-06-28 13:48:01 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-06-28 13:48:01 +0000 |
commit | fbdb9f08a92ea5496314dcfb25cfcb2b2cad2a8c (patch) | |
tree | 793eec8bf3e342baa86057eaad788cfb9a67d68d /ui/ui.dialog.js | |
parent | 60312808d079486eb9b3e6ef481e270f874f35aa (diff) | |
download | jquery-ui-fbdb9f08a92ea5496314dcfb25cfcb2b2cad2a8c.tar.gz jquery-ui-fbdb9f08a92ea5496314dcfb25cfcb2b2cad2a8c.zip |
fixed #3012 - Dialog causing iframe load event to fire in firefox 2
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r-- | ui/ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |