From cea956cf6a28aa1a4fede59a9309ec626c4ebc2e Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 14 May 2009 13:18:36 +0000 Subject: - Fix autocomplete problem with capital letters (#1485792) --- program/js/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 2fb6ce53e..da480aa67 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2564,11 +2564,14 @@ function rcube_webmail() q = q.replace(/(^\s+|\s+$)/g, '').toLowerCase(); // Don't (re-)search if string is empty or if the last results are still active - if (!q.length || q == this.ksearch_value) + if (q == this.ksearch_value) return; - + this.ksearch_value = q; + if (!q.length) + return; + this.display_message(this.get_label('searching'), 'loading', true); this.http_post('autocomplete', '_search='+urlencode(q)); }; -- cgit v1.2.3