From ec211b759241d9e1bbd21fad502e023c90719d9e Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 8 Nov 2010 13:52:39 +0000 Subject: - Changed timeout so non-error messages will disapear faster --- program/js/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index b57c4470f..842a3cd22 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -37,7 +37,7 @@ function rcube_webmail() // 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 @@ function rcube_webmail() 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; } }; -- cgit v1.2.3