summaryrefslogtreecommitdiff
path: root/lib/gallery.panel.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-20 14:21:40 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-20 14:21:40 -0700
commit189518849c8a1d8f5ee7c3a1ddbe0852bdbe822c (patch)
tree79d8c3deb38d228e172a2c2061ac5b92cbec3c1c /lib/gallery.panel.js
parent31361219894bae6da9229fb140b7ebf2af45e46d (diff)
Modify the panel code to expect a JSON data package to mirror what we did in gallery.dialog.js in 9538b3888dadbe3a6fac72e2a97f97c7db3d86f2
Diffstat (limited to 'lib/gallery.panel.js')
-rw-r--r--lib/gallery.panel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gallery.panel.js b/lib/gallery.panel.js
index 8d627369..b94df223 100644
--- a/lib/gallery.panel.js
+++ b/lib/gallery.panel.js
@@ -31,8 +31,8 @@
if (should_open) {
$(parent).after(ePanel);
$("#g-panel td").html(sHref);
- $.get(sHref, function(data) {
- $("#g-panel td").html(data);
+ $.getJSON(sHref, function(data) {
+ $("#g-panel td").html(unescape(data.form));
self._ajaxify_panel();
if ($(element).attr("open_text")) {
$(element).attr("orig_text", $(element).children(".g-button-text").text());