Merge pull request #16829 from edx/diana/registration-form-improvements
LEARNER-3469 - More registration form cleanup.
This commit is contained in:
@@ -213,7 +213,8 @@
|
||||
isCheckbox = $input.attr('class').indexOf('checkbox') !== -1;
|
||||
|
||||
if (!isCheckbox) {
|
||||
if ($input.val().length === 0 && !$input.is(':-webkit-autofill')) {
|
||||
if ($input.find(inputSelectors).val().length === 0
|
||||
&& !$input.is(':-webkit-autofill')) {
|
||||
$input.find('label').addClass('focus-out')
|
||||
.removeClass('focus-in');
|
||||
} else {
|
||||
@@ -235,12 +236,14 @@
|
||||
// is a required checkbox field and the optional fields toggle is a cosmetic
|
||||
// improvement so that we don't have to show all the optional fields.
|
||||
// xss-lint: disable=javascript-jquery-insert-into-target
|
||||
$('.checkbox-optional_fields_toggle').insertBefore('.optional-fields');
|
||||
$('.checkbox-optional_fields_toggle').insertAfter('.required-fields');
|
||||
if (!this.hasOptionalFields) {
|
||||
$('.checkbox-optional_fields_toggle').addClass('hidden');
|
||||
}
|
||||
// xss-lint: disable=javascript-jquery-insert-into-target
|
||||
$('.checkbox-honor_code').insertAfter('.optional-fields');
|
||||
// xss-lint: disable=javascript-jquery-insert-into-target
|
||||
$('.checkbox-terms_of_service').insertAfter('.optional-fields');
|
||||
|
||||
// Clicking on links inside a label should open that link.
|
||||
$('label a').click(function(ev) {
|
||||
|
||||
Reference in New Issue
Block a user