Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Ignore aborted ajax requests in CMS notifications

  • Loading branch information...
commit 37777615cf0b03eafe16afcd569fcdc9897ef0fe 1 parent a393d39
@chillu chillu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  admin/javascript/LeftAndMain.js
View
2  admin/javascript/LeftAndMain.js
@@ -49,6 +49,8 @@ jQuery.noConflict();
}
});
$(document).ajaxError(function(e, xhr, settings, error) {
+ if(xhr.status == 0) return; // ignore aborted requests
+
if(xhr.status < 200 || xhr.status > 399) {
var msg = (xhr.getResponseHeader('X-Status')) ? xhr.getResponseHeader('X-Status') : xhr.statusText;
} else {

0 comments on commit 3777761

Please sign in to comment.
Something went wrong with that request. Please try again.