Commit 22a56fdd by Brian Talbot

edx.org - adding in an intermediate disabled state for login/register submit…

edx.org - adding in an intermediate disabled state for login/register submit buttons when the form is first processed
parent b5ec11af
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment