summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-07-03 16:12:55 +0000
committerDries Buytaert <dries@buytaert.net>2005-07-03 16:12:55 +0000
commit338a135bfb4673020317ca7d2c43a223b8f45786 (patch)
tree4c491fdcf1e9a6e238048b5f018df6343e326851 /misc
parentf14cb1ab2b2b61070ef9dcd3f49a44f0b45a72ef (diff)
downloadbrdo-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.js8
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);