summaryrefslogtreecommitdiff
path: root/misc/autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/autocomplete.js')
-rw-r--r--misc/autocomplete.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js
index 6cb72518c..f680ef727 100644
--- a/misc/autocomplete.js
+++ b/misc/autocomplete.js
@@ -222,7 +222,6 @@ jsAC.prototype.found = function (matches) {
*/
function ACDB(uri) {
this.uri = uri;
- this.max = 15;
this.delay = 300;
this.cache = {};
}
@@ -241,7 +240,7 @@ ACDB.prototype.search = function(searchString) {
var db = this;
this.timer = setTimeout(function() {
addClass(db.owner.input, 'throbbing');
- HTTPGet(db.uri +'/'+ searchString +'/'+ db.max, db.receive, db);
+ HTTPGet(db.uri +'/'+ encodeURIComponent(searchString), db.receive, db);
}, this.delay);
}