Prevent concurrent autocomplete query results display (#1485743)
| | |
| | | ---------- |
| | | - 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) |
| | | ---------- |
| | |
| | | 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 : []; |
| | | |
| | |
| | | sort($contacts); |
| | | } |
| | | |
| | | $OUTPUT->command('ksearch_query_results', $contacts); |
| | | $OUTPUT->command('ksearch_query_results', $contacts, $search); |
| | | $OUTPUT->send(); |
| | | |
| | | ?> |