diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-07-03 16:12:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-07-03 16:12:55 +0000 |
commit | 338a135bfb4673020317ca7d2c43a223b8f45786 (patch) | |
tree | 4c491fdcf1e9a6e238048b5f018df6343e326851 /misc | |
parent | f14cb1ab2b2b61070ef9dcd3f49a44f0b45a72ef (diff) | |
download | brdo-338a135bfb4673020317ca7d2c43a223b8f45786.tar.gz brdo-338a135bfb4673020317ca7d2c43a223b8f45786.tar.bz2 |
- Patch #25354 by Thox: fixed Javascript caching. Faster response and less server traffic for matches previously found.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/autocomplete.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js index 658203dac..00b19fce5 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -230,11 +230,9 @@ function ACDB(uri) { * Performs a cached and delayed search */ ACDB.prototype.search = function(searchString) { - if (this.docache) { - this.searchString = searchString; - if (this.cache[searchString]) { - return this.match(this.cache[searchString]); - } + this.searchString = searchString; + if (this.cache[searchString]) { + return this.owner.found(this.cache[searchString]); } if (this.timer) { clearTimeout(this.timer); |