summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-17 09:01:25 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-17 09:01:25 +0000
commit6bfc2f4513eeea50884cc9127144a532d8efcb14 (patch)
tree85ecb04ed2fe981664af442fd046b4deb1e381f6 /roundcubemail/program/js/app.js
parent665ee4fad42ef43589558ba887475da0de453a3f (diff)
- Lock submit button in onsubmit event on login page (#1487036)
git-svn-id: https://svn.roundcube.net/trunk@4229 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 7c38b142a..7ab31cb46 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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;