diff --git a/misc/ajax.js b/misc/ajax.js index c4401f1..1556931 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -476,13 +476,11 @@ Drupal.ajax.prototype.getEffect = function (response) { * Handler for the form redirection error. */ Drupal.ajax.prototype.error = function (xmlhttprequest, uri, customMessage) { - if (xmlhttprequest.status >= 400) { - if (window.console) { - console.log(Drupal.ajaxError(xmlhttprequest, uri, customMessage)); - } - else { - alert(Drupal.ajaxError(xmlhttprequest, uri, customMessage)); - } + if (window.console) { + console.log(Drupal.ajaxError(xmlhttprequest, uri, customMessage)); + } + else { + alert(Drupal.ajaxError(xmlhttprequest, uri, customMessage)); } // Remove the progress element. if (this.progress.element) { diff --git a/misc/autocomplete.js b/misc/autocomplete.js index c866d29..0063d14 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -310,15 +310,12 @@ Drupal.ACDB.prototype.search = function (searchString) { } }, error: function (xmlhttp) { - if (xmlhttp.status >= 400) { - if (window.console) { - console.log(Drupal.ajaxError(xmlhttp, db.uri)); - } - else { - alert(Drupal.ajaxError(xmlhttp, db.uri)); - } + if (window.console) { + console.log(Drupal.ajaxError(xmlhttp, db.uri)); + } + else { + alert(Drupal.ajaxError(xmlhttp, db.uri)); } - } }); }, this.delay);