From 28ad8990bccfef41d5eaa4aa90bd3b878f75c0df Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 27 Feb 2009 11:06:29 +0000 Subject: Prevent concurrent autocomplete query results display (#1485743) git-svn-id: https://svn.roundcube.net/trunk@2318 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index f79905743..7f1e7241b 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -2516,8 +2516,12 @@ function rcube_webmail() this.http_post('autocomplete', '_search='+q); }; - this.ksearch_query_results = function(results) + this.ksearch_query_results = function(results, search) { + // ignore this outdated search response + if (search != this.ksearch_value) + return; + this.hide_message(); this.env.contacts = results ? results : []; -- cgit v1.2.3