diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/autocomplete.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js index 0f4eee475..6cb72518c 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -249,7 +249,8 @@ ACDB.prototype.search = function(searchString) { * HTTP callback function. Passes suggestions to the autocomplete object */ ACDB.prototype.receive = function(string, xmlhttp, acdb) { - if (xmlhttp.status != 200) { + // Note: Safari returns 'undefined' status if the request returns no data. + if (xmlhttp.status != 200 && typeof xmlhttp.status != 'undefined') { removeClass(acdb.owner.input, 'throbbing'); return alert('An HTTP error '+ xmlhttp.status +' occured.\n'+ acdb.uri); } |