mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 06:09:00 +02:00
MINOR Ignore aborted ajax requests in CMS notifications
This commit is contained in:
parent
a393d3937b
commit
37777615cf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user