summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-19 18:41:30 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-19 18:41:30 +0000
commit31e0a28b963ed7cb35fd5e178e346aa75d7734ba (patch)
tree10d27c71360d9f155e1cb18f61c989f766956c5b /roundcubemail/program/js/app.js
parent1d55886040bfbcbdf6398bb34744efe3feba3453 (diff)
- Improve displaying of autocompletechars message
git-svn-id: https://svn.roundcube.net/trunk@4563 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 712400a68..31bf29609 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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);
}