summaryrefslogtreecommitdiff
path: root/program/js/app.js
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:03:11 +0200
commita71039df755e980f8ff1b32ea367250a0e74521a (patch)
treeab21a080ae552e97d4573c0c589c981141ac1fbc /program/js/app.js
parent528c78a6dae632df624fb74909185dc3858c61d4 (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
Diffstat (limited to 'program/js/app.js')
-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 49d7b5ff8..9d6f7e808 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3804,7 +3804,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(),