From a71039df755e980f8ff1b32ea367250a0e74521a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 30 May 2012 13:03:11 +0200 Subject: 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 --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/js') 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(), -- cgit v1.2.3