summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-30 13:03:11 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-30 13:05:04 +0200
commit1784ae41653581afe63f55031937735531daa541 (patch)
treefd794e12aa6bb3f84584ac94d2409ba54be8059b
parent86135e2bcca0546b9c200a9663ec3ad7b94459fa (diff)
Fix regression where redundant autocompletion requests were sent
in case when new search value contains old one and previous search was not finished or its result was empty
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index cb2727523..584efdd18 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3783,7 +3783,7 @@ function rcube_webmail()
return;
// ...new search value contains old one and previous search was not finished or its result was empty
- if (old_value && old_value.length && q.indexOf(old_value) == 0 && (!ac || !ac.num) && this.env.contacts && !this.env.contacts.length)
+ if (old_value && old_value.length && q.indexOf(old_value) == 0 && (!ac || ac.num <= 0) && this.env.contacts && !this.env.contacts.length)
return;
var i, lock, source, xhr, reqid = new Date().getTime(),