Skip to content

Commit

Permalink
MINOR Ignore aborted ajax requests in CMS notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Apr 17, 2012
1 parent a393d39 commit 3777761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/javascript/LeftAndMain.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 3777761

Please sign in to comment.