Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
efd634ac
Commit
efd634ac
authored
Jan 16, 2006
by
Steven Wittens
Browse files
- Fix Safari alert when no autocomplete matches are returned.
parent
b7a99363
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc/autocomplete.js
View file @
efd634ac
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment