MINOR Ignore aborted ajax requests in CMS notifications

This commit is contained in:
Ingo Schommer 2012-04-17 17:12:15 +02:00
parent a393d3937b
commit 37777615cf

View File

@ -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 {