summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-11-08 13:52:39 +0000
committeralecpl <alec@alec.pl>2010-11-08 13:52:39 +0000
commitec211b759241d9e1bbd21fad502e023c90719d9e (patch)
tree2321ac97b4cf2b712f806d157664a380c566b2f4 /program/js
parentf94639f7bfd0bd3fdbe074dc4fb290a8265f6373 (diff)
- Changed timeout so non-error messages will disapear faster
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js7
1 files 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;
}
};