Skip to content
Snippets Groups Projects
Commit 99e256b7 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

this.XHR.abort error fix.

parent 08e251f2
No related merge requests found
...@@ -79,7 +79,8 @@ var Lightbox = { ...@@ -79,7 +79,8 @@ var Lightbox = {
if(this.XHR) { if(this.XHR) {
this.XHR.abort(); this.XHR.abort();
} }
this.XHR = $.ajax(obj).then().fail(function(response) { this.XHR = $.ajax(obj)
this.XHR.then().fail(function(response) {
Lightbox.displayError(response.responseJSON.data); Lightbox.displayError(response.responseJSON.data);
}); });
return this.XHR; return this.XHR;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment