thomascube
2009-02-27 aaffbeb04936c0e5d96b8cffa8fe4c14e942a633
Prevent concurrent autocomplete query results display (#1485743)

3 files modified
9 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 6 ●●●● patch | view | raw | blame | history
program/steps/mail/autocomplete.inc 2 ●●● patch | view | raw | blame | history
CHANGELOG
@@ -5,6 +5,7 @@
----------
- 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)
----------
program/js/app.js
@@ -2516,8 +2516,12 @@
    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 : [];
program/steps/mail/autocomplete.inc
@@ -44,7 +44,7 @@
  sort($contacts);
}
$OUTPUT->command('ksearch_query_results', $contacts);
$OUTPUT->command('ksearch_query_results', $contacts, $search);
$OUTPUT->send();
?>