diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-30 13:03:11 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-30 13:03:11 +0200 |
commit | a71039df755e980f8ff1b32ea367250a0e74521a (patch) | |
tree | ab21a080ae552e97d4573c0c589c981141ac1fbc /program/js | |
parent | 528c78a6dae632df624fb74909185dc3858c61d4 (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')
-rw-r--r-- | program/js/app.js | 2 |
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(), |