summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-02-27 11:06:29 +0000
committerthomascube <thomas@roundcube.net>2009-02-27 11:06:29 +0000
commitaaffbeb04936c0e5d96b8cffa8fe4c14e942a633 (patch)
tree87736962764bad3215fac4a655da1b68fa002b96 /program/js
parent6972ccaf311e0f7c0c912e6a3bfa9e23394807d3 (diff)
Prevent concurrent autocomplete query results display (#1485743)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index f79905743..7f1e7241b 100644
--- a/program/js/app.js
+++ b/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 : [];