diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-16 16:31:49 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-16 16:31:49 +0000 |
commit | efd634ac1546c45cd299ec9040997f7663deddd7 (patch) | |
tree | 0f3b43f2c61c696fc5a6abacd52bc65779a70d8e /misc | |
parent | b7a993639be0655542f082740f34ca7e972922db (diff) | |
download | brdo-efd634ac1546c45cd299ec9040997f7663deddd7.tar.gz brdo-efd634ac1546c45cd299ec9040997f7663deddd7.tar.bz2 |
- Fix Safari alert when no autocomplete matches are returned.
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); } |