Merge pull request #23885 from edx/aakbar/PROD-1478
Unauthenticated Contact Us improvements
This commit is contained in:
@@ -179,8 +179,8 @@
|
||||
// Simulate a click on the reset password link
|
||||
view.resetPassword();
|
||||
|
||||
// Verify that the login-anchor is hidden
|
||||
expect($('#login-anchor')).toHaveClass('hidden');
|
||||
// Verify that the login-form is hidden
|
||||
expect($('#login-form')).toHaveClass('hidden');
|
||||
|
||||
// Verify that the password reset form is not hidden
|
||||
expect($('#password-reset-form')).not.toHaveClass('hidden');
|
||||
|
||||
@@ -128,7 +128,12 @@
|
||||
},
|
||||
|
||||
loadForm: function(type) {
|
||||
var loadFunc = _.bind(this.load[type], this);
|
||||
var loadFunc;
|
||||
if (type === 'reset') {
|
||||
loadFunc = _.bind(this.load.login, this);
|
||||
loadFunc(this.formDescriptions.login);
|
||||
}
|
||||
loadFunc = _.bind(this.load[type], this);
|
||||
loadFunc(this.formDescriptions[type]);
|
||||
},
|
||||
|
||||
@@ -225,7 +230,7 @@
|
||||
},
|
||||
|
||||
passwordEmailSent: function() {
|
||||
var $loginAnchorElement = $('#login-anchor');
|
||||
var $loginAnchorElement = $('#login-form');
|
||||
this.element.hide($(this.el).find('#password-reset-anchor'));
|
||||
this.element.show($loginAnchorElement);
|
||||
this.element.scrollTop($loginAnchorElement);
|
||||
@@ -236,7 +241,7 @@
|
||||
category: 'user-engagement'
|
||||
});
|
||||
|
||||
this.element.hide($(this.el).find('#login-anchor'));
|
||||
this.element.hide($(this.el).find('#login-form'));
|
||||
this.loadForm('reset');
|
||||
this.element.scrollTop($('#password-reset-anchor'));
|
||||
},
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
font-weight: $font-regular;
|
||||
}
|
||||
|
||||
.help-button {
|
||||
.help-button, .btn-secondary {
|
||||
margin-bottom: $baseline;
|
||||
height: $baseline * 2;
|
||||
font-weight: $font-regular;
|
||||
|
||||
Reference in New Issue
Block a user