diff --git a/lms/static/sass/multicourse/_account.scss b/lms/static/sass/multicourse/_account.scss index 5e1965ae43..eab8cbe66b 100644 --- a/lms/static/sass/multicourse/_account.scss +++ b/lms/static/sass/multicourse/_account.scss @@ -391,7 +391,7 @@ button[type="submit"] { @extend .button-primary; - &:disabled { + &:disabled, &.is-disabled { opacity: 0.3; cursor: default !important; } diff --git a/lms/templates/login.html b/lms/templates/login.html index 6627da6e18..2e0281f4f6 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -7,7 +7,7 @@ <%block name="js_extra"> @@ -76,7 +79,7 @@
- +

- Please provide the following information to log into your edX account. Required fields are noted by bold text and an asterisk (*). + Please provide the following information to log into your edX account. Required fields are noted by bold text and an asterisk (*).

@@ -100,7 +103,7 @@
  1. - +
  2. diff --git a/lms/templates/register.html b/lms/templates/register.html index f5e4511c09..ee06a3caa0 100644 --- a/lms/templates/register.html +++ b/lms/templates/register.html @@ -36,8 +36,10 @@ (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'); + $('.message.submission-error').removeClass('is-shown'); toggleSubmitButton(); location.href="${reverse('dashboard')}"; } else { @@ -52,13 +54,14 @@ function toggleSubmitButton(e) { var $msgError = $('form .status.submission-error'); var $submitButton = $('form .form-actions #submit').prop('disabled', true); + var $submitButtonCopy = $submitButton.html(); if(!$msgError.hasClass('is-shown')) { - $submitButton.prop('disabled', true); + $submitButton.prop('disabled', true).html('Processing your registration …'); } else { - $submitButton.prop('disabled', false); + $submitButton.prop('disabled', false).html($submitButtonCopy); } } @@ -77,7 +80,7 @@ - + - \ No newline at end of file +