- don't change case of autocomplete search to lower (per discussion for #1485792)

release-0.6
alecpl 15 years ago
parent 3e2bc6a975
commit bc1296f729

@ -2632,7 +2632,7 @@ function rcube_webmail()
return; return;
// get cursor pos // get cursor pos
var inp_value = this.ksearch_input.value.toLowerCase(); var inp_value = this.ksearch_input.value;
var cpos = this.get_caret_pos(this.ksearch_input); var cpos = this.get_caret_pos(this.ksearch_input);
var p = inp_value.lastIndexOf(this.ksearch_value, cpos); var p = inp_value.lastIndexOf(this.ksearch_value, cpos);
@ -2664,7 +2664,7 @@ function rcube_webmail()
var q = inp_value.substring(p+1, cpos); var q = inp_value.substring(p+1, cpos);
// trim query string // trim query string
q = q.replace(/(^\s+|\s+$)/g, '').toLowerCase(); q = q.replace(/(^\s+|\s+$)/g, '');
// Don't (re-)search if the last results are still active // Don't (re-)search if the last results are still active
if (q == this.ksearch_value) if (q == this.ksearch_value)

Loading…
Cancel
Save