diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-02-27 11:06:29 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-02-27 11:06:29 +0000 |
| commit | 28ad8990bccfef41d5eaa4aa90bd3b878f75c0df (patch) | |
| tree | c3223d8d8b2baab83ddd4b37e76d2c9a6d3320c2 | |
| parent | 766d2d9aeebb706c84dca10a85be77d286118d58 (diff) | |
Prevent concurrent autocomplete query results display (#1485743)
git-svn-id: https://svn.roundcube.net/trunk@2318 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/program/js/app.js | 6 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/autocomplete.inc | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index ed66d6a32..946b25ea3 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -5,6 +5,7 @@ CHANGELOG RoundCube Webmail ---------- - Fix mime-type detection using a hard-coded map (#1485311) - Don't return empty string if charset conversion failed (#1485757) +- Disable concurrent autocomplete query results display (#1485743) 2009/02/26 (alec) ---------- 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 : []; diff --git a/roundcubemail/program/steps/mail/autocomplete.inc b/roundcubemail/program/steps/mail/autocomplete.inc index c840e9cf9..26acc88c2 100644 --- a/roundcubemail/program/steps/mail/autocomplete.inc +++ b/roundcubemail/program/steps/mail/autocomplete.inc @@ -44,7 +44,7 @@ if ($book_types && $search = get_input_value('_search', RCUBE_INPUT_POST)) { sort($contacts); } -$OUTPUT->command('ksearch_query_results', $contacts); +$OUTPUT->command('ksearch_query_results', $contacts, $search); $OUTPUT->send(); ?>
\ No newline at end of file |
