diff --git a/misc/ajax.js b/misc/ajax.js index 830c8aa..e7ddec6 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -448,7 +448,7 @@ Drupal.ajax.prototype.getEffect = function (response) { * Handler for the form redirection error. */ Drupal.ajax.prototype.error = function (response, uri) { - alert(Drupal.ajaxError(response, uri)); + if (response.status != 0) alert(Drupal.ajaxError(response, db.uri)); // Remove the progress element. if (this.progress.element) { $(this.progress.element).remove(); diff --git a/misc/autocomplete.js b/misc/autocomplete.js index 5e85be4..e41a87e 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -303,7 +303,9 @@ Drupal.ACDB.prototype.search = function (searchString) { } }, error: function (xmlhttp) { - alert(Drupal.ajaxError(xmlhttp, db.uri)); + if (xmlhttp.status != 0) { + alert(Drupal.ajaxError(xmlhttp, db.uri)); + } } }); }, this.delay);