edx.org - adding in an intermediate disabled state for login/register submit buttons when the form is first processed
This commit is contained in:
@@ -391,7 +391,7 @@
|
||||
button[type="submit"] {
|
||||
@extend .button-primary;
|
||||
|
||||
&:disabled {
|
||||
&:disabled, &.is-disabled {
|
||||
opacity: 0.3;
|
||||
cursor: default !important;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
(function() {
|
||||
$(document).delegate('#login-form', 'ajax:success', function(data, json, xhr) {
|
||||
$(this).find('.form-actions #submit').addClass('is-disabled');
|
||||
|
||||
if(json.success) {
|
||||
$('.message.submission-error').removeClass('is-shown');
|
||||
toggleSubmitButton();
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
(function() {
|
||||
$(document).delegate('#register-form', 'ajax:success', function(data, json, xhr) {
|
||||
$(this).find('.form-actions #submit').addClass('is-disabled');
|
||||
|
||||
if(json.success) {
|
||||
$('.message.submission-error').removeClass('is-shown');
|
||||
toggleSubmitButton();
|
||||
|
||||
Reference in New Issue
Block a user