Prevent the admin to cause an error when an ajax action is in progress and the user navigates to another page

This commit is contained in:
Flavio Copes
2015-11-29 17:57:30 +01:00
parent 045e1614fe
commit ffb3055450

View File

@@ -102,7 +102,7 @@ $(function(){
};
root.GravAjax.toastErrorHandler = function (xhr, status, error) {
if (status !== 'abort') {
if (status !== 'abort' && !(status == 'error' && error == '')) {
toastr.error(error);
}
};