- Lock submit button in onsubmit event on login page (#1487036)

release-0.6
alecpl 14 years ago
parent 4b410e2064
commit effdb3c01d

@ -72,6 +72,7 @@ CHANGELOG Roundcube Webmail
- Fix handling of HTML entity strings in plain text messages - Fix handling of HTML entity strings in plain text messages
- Fix focused elements aren't unfocused when clicking on the list (#1487123) - Fix focused elements aren't unfocused when clicking on the list (#1487123)
- Fix error in MSSQL DDL scripts (#1487112) - Fix error in MSSQL DDL scripts (#1487112)
- Lock submit button in onsubmit event on login page (#1487036)
RELEASE 0.4.2 RELEASE 0.4.2
------------- -------------

@ -378,9 +378,10 @@ function rcube_webmail()
// detect client timezone // detect client timezone
$('#rcmlogintz').val(new Date().getTimezoneOffset() / -60); $('#rcmlogintz').val(new Date().getTimezoneOffset() / -60);
// display 'loading' message on form submit // display 'loading' message on form submit, lock submit button
$('form').submit(function () { $('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); this.enable_command('login', true);

Loading…
Cancel
Save