summaryrefslogtreecommitdiff
path: root/misc/autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/autocomplete.js')
-rw-r--r--misc/autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js
index e71f4afea..abdf6342e 100644
--- a/misc/autocomplete.js
+++ b/misc/autocomplete.js
@@ -264,9 +264,9 @@ Drupal.ACDB.prototype.search = function (searchString) {
$.ajax({
type: "GET",
url: db.uri +'/'+ Drupal.encodeURIComponent(searchString),
- success: function (xmlhttp) {
+ success: function (data) {
// Parse back result
- var matches = Drupal.parseJson(xmlhttp.responseText);
+ var matches = Drupal.parseJson(data);
if (typeof matches['status'] == 'undefined' || matches['status'] != 0) {
db.cache[searchString] = matches;
// Verify if these are still the matches the user wants to see