Prevent concurrent autocomplete query results display (#1485743)

release-0.6
thomascube 16 years ago
parent 6972ccaf31
commit aaffbeb049

@ -5,6 +5,7 @@ CHANGELOG RoundCube Webmail
---------- ----------
- Fix mime-type detection using a hard-coded map (#1485311) - Fix mime-type detection using a hard-coded map (#1485311)
- Don't return empty string if charset conversion failed (#1485757) - Don't return empty string if charset conversion failed (#1485757)
- Disable concurrent autocomplete query results display (#1485743)
2009/02/26 (alec) 2009/02/26 (alec)
---------- ----------

@ -2516,8 +2516,12 @@ function rcube_webmail()
this.http_post('autocomplete', '_search='+q); 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.hide_message();
this.env.contacts = results ? results : []; this.env.contacts = results ? results : [];

@ -44,7 +44,7 @@ if ($book_types && $search = get_input_value('_search', RCUBE_INPUT_POST)) {
sort($contacts); sort($contacts);
} }
$OUTPUT->command('ksearch_query_results', $contacts); $OUTPUT->command('ksearch_query_results', $contacts, $search);
$OUTPUT->send(); $OUTPUT->send();
?> ?>
Loading…
Cancel
Save