Skip to content
Browse files

MINOR Ignore aborted ajax requests in CMS notifications

  • Loading branch information...
1 parent a393d39 commit 37777615cf0b03eafe16afcd569fcdc9897ef0fe @chillu chillu committed Apr 17, 2012
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.