diff options
author | alecpl <alec@alec.pl> | 2012-03-08 13:04:06 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-03-08 13:04:06 +0000 |
commit | 54dfd155414e501ad62e81625ffadec86ca90980 (patch) | |
tree | fdfba26b01db8c091f00f251887768e4e093aaf8 /program | |
parent | f709325172fd7a9df118a304a43f5996c58d23d9 (diff) |
- On login screen show only one message at a time
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index bd8669b0d..d406844ae 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -431,6 +431,7 @@ function rcube_webmail() // display 'loading' message on form submit, lock submit button $('form').submit(function () { $('input[type=submit]', this).prop('disabled', true); + rcmail.clear_messages(); rcmail.display_message('', 'loading'); }); @@ -5544,6 +5545,23 @@ function rcube_webmail() } }; + // remove all messages immediately + this.clear_messages = function() + { + // pass command to parent window + if (this.is_framed()) + return parent.rcmail.clear_messages(); + + var k, n, m = this.messages; + + for (k in m) + for (n in m[k].elements) + if (m[k].obj) + m[k].obj.hide(); + + this.messages = {}; + }; + // mark a mailbox as selected and set environment variable this.select_folder = function(name, prefix, encode) { |