summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-19 18:41:30 +0000
committeralecpl <alec@alec.pl>2011-02-19 18:41:30 +0000
commit2b3a8e8de27a4598daabb6ad314e340fee141d56 (patch)
tree8821fbd58c0e1cd4c8ab25edc4b2df62f9e77c58
parent798764c2bbe0834e9d73031095efe520a84fc701 (diff)
- Improve displaying of autocompletechars message
-rw-r--r--program/js/app.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 712400a68..31bf29609 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3486,15 +3486,14 @@ function rcube_webmail()
if (q == this.ksearch_value)
return;
- if (q.length < min) {
+ if (q.length && q.length < min) {
if (!this.env.acinfo) {
- var label = this.get_label('autocompletechars');
- label = label.replace('$min', min);
- this.env.acinfo = this.display_message(label);
+ this.env.acinfo = this.display_message(
+ this.get_label('autocompletechars').replace('$min', min));
}
return;
}
- else if (this.env.acinfo && q.length == min) {
+ else if (this.env.acinfo) {
this.hide_message(this.env.acinfo);
}