Skip to content
This repository
Browse code

MINOR Ignore aborted ajax requests in CMS notifications

  • Loading branch information...
commit 37777615cf0b03eafe16afcd569fcdc9897ef0fe 1 parent a393d39
Ingo Schommer authored April 17, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  admin/javascript/LeftAndMain.js
2  admin/javascript/LeftAndMain.js
@@ -49,6 +49,8 @@ jQuery.noConflict();
49 49
 			}
50 50
 		});
51 51
 		$(document).ajaxError(function(e, xhr, settings, error) {
  52
+			if(xhr.status == 0) return; // ignore aborted requests
  53
+
52 54
 			if(xhr.status < 200 || xhr.status > 399) {
53 55
 				var msg = (xhr.getResponseHeader('X-Status')) ? xhr.getResponseHeader('X-Status') : xhr.statusText;
54 56
 			} else {

0 notes on commit 3777761

Please sign in to comment.
Something went wrong with that request. Please try again.