[Svn] r4563 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Sat Feb 19 19:41:31 CET 2011


Author: alec
Date: 2011-02-19 12:41:30 -0600 (Sat, 19 Feb 2011)
New Revision: 4563

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Improve displaying of autocompletechars message


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2011-02-18 11:00:48 UTC (rev 4562)
+++ trunk/roundcubemail/program/js/app.js	2011-02-19 18:41:30 UTC (rev 4563)
@@ -3486,15 +3486,14 @@
     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);
     }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list