From b5ec11afa089444234db0c1797b5b378bcccdbf4 Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Wed, 10 Apr 2013 11:26:00 -0400 Subject: [PATCH] edx.org - adding in more UI status when processing login/register forms --- lms/templates/login.html | 17 +++++++++-------- lms/templates/register.html | 15 ++++++++------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/lms/templates/login.html b/lms/templates/login.html index 6627da6e18..8290743418 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -7,7 +7,7 @@ <%block name="js_extra"> @@ -76,7 +77,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 +101,7 @@
  1. - +
  2. diff --git a/lms/templates/register.html b/lms/templates/register.html index f5e4511c09..7e79f420e6 100644 --- a/lms/templates/register.html +++ b/lms/templates/register.html @@ -37,7 +37,7 @@ (function() { $(document).delegate('#register-form', 'ajax:success', function(data, json, xhr) { if(json.success) { - $('.message.submission-error').removeClass('is-shown'); + $('.message.submission-error').removeClass('is-shown'); toggleSubmitButton(); location.href="${reverse('dashboard')}"; } else { @@ -52,13 +52,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 +78,7 @@ - + - \ No newline at end of file +