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

trac at roundcube.net trac at roundcube.net
Mon Nov 8 14:52:39 CET 2010


Author: alec
Date: 2010-11-08 07:52:39 -0600 (Mon, 08 Nov 2010)
New Revision: 4196

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Changed timeout so non-error messages will disapear faster


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-11-08 13:21:41 UTC (rev 4195)
+++ trunk/roundcubemail/program/js/app.js	2010-11-08 13:52:39 UTC (rev 4196)
@@ -37,7 +37,7 @@
 
   // webmail client settings
   this.dblclick_time = 500;
-  this.message_time = 3000;
+  this.message_time = 1500;
 
   this.identifier_expr = new RegExp('[^0-9a-z\-_]', 'gi');
 
@@ -4630,8 +4630,9 @@
       return id;
     }
     else {
-      obj.appendTo(cont).bind('mousedown', function(){ return ref.hide_message(obj); });
-      window.setTimeout(function(){ ref.hide_message(obj, true); }, this.message_time);
+      obj.appendTo(cont).bind('mousedown', function() { return ref.hide_message(obj); });
+      window.setTimeout(function() { ref.hide_message(obj, true); },
+        this.message_time * (type == 'error' ? 2 : 1));
       return obj;
     }
   };

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



More information about the Svn mailing list