diff options
author | shadlaws <shad@shadlaws.com> | 2013-02-13 09:45:12 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-02-13 09:45:12 +0100 |
commit | f580488fb5914b309a15396611d9b3a9177c65a0 (patch) | |
tree | e18dc8eed57a7e652e97a59427c8d12b24818326 /lib/gallery.dialog.js | |
parent | 1ac2c959d0f82c1ccef6cce96638704f40097e38 (diff) |
Fix Cancel link positioning, fix watermark error reply (seems to have already been broken in v3.0.4...)
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r-- | lib/gallery.dialog.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index b1442390..b4557493 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -139,6 +139,13 @@ }, success: function(data) { if (data.html) { + if (data.result == "error") { + // This is an odd case that arises from the watermarks module. This is because we + // have a fake xhr, and we rawurlencode the results because the JS code that uploads + // the file buffers it in an iframe which entitizes the HTML and makes it difficult + // for the JS to process. See ticket #797. + data.html = unescape(data.html); + } $("#g-dialog").html(data.html); $("#g-dialog").dialog("option", "position", "center"); $("#g-dialog form :submit").removeClass("ui-state-disabled") |