diff options
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 7c38b142a..7ab31cb46 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -378,10 +378,11 @@ function rcube_webmail() // detect client timezone $('#rcmlogintz').val(new Date().getTimezoneOffset() / -60); - // display 'loading' message on form submit + // display 'loading' message on form submit, lock submit button $('form').submit(function () { - rcmail.display_message(rcmail.get_label('loading'), 'loading'); - }); + $('input[type=submit]', this).attr('disabled', true); + rcmail.display_message('', 'loading'); + }); this.enable_command('login', true); break; |