diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-29 08:59:10 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-07-31 15:44:56 -0700 |
commit | a6ceb927e602dd693b011a17e625cc9c87d57d69 (patch) | |
tree | 27bd1ec261345fc86cbcd574464358d23b1e8e24 /lib/gallery.panel.js | |
parent | 0c535c85ed7eb5d852ff18715287dd63f85903ac (diff) |
Sometimes in dialogs, the form is wrapped in a view to provide additional information. We need to replace the contents of the entire dialog, not just the form, otherwise, there could be text floating around that doesn't make sense.
Diffstat (limited to 'lib/gallery.panel.js')
-rw-r--r-- | lib/gallery.panel.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gallery.panel.js b/lib/gallery.panel.js index e219f3d6..aee7185d 100644 --- a/lib/gallery.panel.js +++ b/lib/gallery.panel.js @@ -80,7 +80,7 @@ }, success: function(data) { if (data.form) { - $("#g-panel td form").replaceWith(data.form); + $("#g-panel td").html(data.form); self._ajaxify_panel(); } if (data.result == "success") { |