diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-07-16 11:58:13 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-07-16 11:58:13 -0700 |
commit | 583950616ef7c89acc0b0cbb52e77ffdb0afbb3d (patch) | |
tree | 738dbf7ba5f704c9327a83fed9fac4d3f050e137 /lib/gallery.dialog.js | |
parent | b51b49cb63d990611dacccca5e2a505c6c96357d (diff) |
Improve the fix for #1176 to use request::is_ajax() instead of tacking
on a query param to urls that appear in dialogs. This keeps things simpler.
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r-- | lib/gallery.dialog.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index a36c561a..cc35f5cd 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -27,8 +27,7 @@ $("#g-dialog").gallery_show_loading(); - var url = sHref + (sHref.indexOf("?") == -1 ? "?" : "&") + "gallery_dialog_request=1"; - $.getJSON(url, function(data) { + $.getJSON(sHref, function(data) { $("#g-dialog").html(unescape(data.form)).gallery_show_loading(); if ($("#g-dialog form").length) { |