diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-08 13:04:06 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-08 13:04:06 +0000 |
| commit | 3f2fe3014803bb829427ddf28adf447c86399668 (patch) | |
| tree | 9fc02c0cf42cf670ac873924f6b4fa052a80cf70 /roundcubemail/program/js/app.js | |
| parent | 3bc4db50e7f2076f503f8c2ef77d877f2b4e1866 (diff) | |
- On login screen show only one message at a time
git-svn-id: https://svn.roundcube.net/trunk@5988 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index bd8669b0d..d406844ae 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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) { |
