summaryrefslogtreecommitdiff
path: root/lib/gallery.panel.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-23 01:09:30 -0500
committerBharat Mediratta <bharat@menalto.com>2013-02-23 01:09:30 -0500
commit9d6ed037bb5b346fba900c17ba57b34dae3b6fc8 (patch)
tree2caddad82bfa6a6ad5f45ea0199c2d0539278026 /lib/gallery.panel.js
parent42878556cf38bccfea2b9b38ab2c8dd90d1ebc88 (diff)
parentf95159c0b886a2ff724d6fa9a9315460186b02ef (diff)
Merge branch 'jquery_190'
Diffstat (limited to 'lib/gallery.panel.js')
-rw-r--r--lib/gallery.panel.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/gallery.panel.js b/lib/gallery.panel.js
index 0683c531..e5028f2a 100644
--- a/lib/gallery.panel.js
+++ b/lib/gallery.panel.js
@@ -34,21 +34,11 @@
$.ajax({
url: sHref,
type: "GET",
- beforeSend: function(xhr) {
- // Until we convert to jquery 1.4, we need to save the
- // XMLHttpRequest object
- this.xhrData = xhr;
- },
success: function(data, textStatus, xhr) {
- // Pre jquery 1.4, get the saved XMLHttpRequest object
- if (xhr == undefined) {
- xhr = this.xhrData;
- }
var mimeType = /^(\w+\/\w+)\;?/.exec(xhr.getResponseHeader("Content-Type"));
var content = "";
if (mimeType[1] == "application/json") {
- data = JSON.parse(data);
- content = data.html;
+ content = unescape(data.html);
} else {
content = data;
}