From d2accb6d34bf494be018dc65a32b064a29e13e3d Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Fri, 24 Oct 2014 16:38:31 -0400 Subject: [PATCH] ECOM-369 Added handling of model save errors. Updated FormView to add preRender function to limit amount of duplicate code. Updated PasswordResetModel to return error object when errors occur. --- lms/static/js/student_account/views/LoginView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/static/js/student_account/views/LoginView.js b/lms/static/js/student_account/views/LoginView.js index 7cc5f4944a..f77f516c3b 100644 --- a/lms/static/js/student_account/views/LoginView.js +++ b/lms/static/js/student_account/views/LoginView.js @@ -81,10 +81,10 @@ var edx = edx || {}; * linked the account to an EdX account. In this case, * we need to prompt the user to enter a little more information * to complete the registration process. - */ + */ if ( error.status === 403 && - error.responseText === "third-party-auth" && - this.currentProvider) { + error.responseText === 'third-party-auth' && + this.currentProvider ) { this.element.show( this.$alreadyAuthenticatedMsg ); } else { this.element.hide( this.$alreadyAuthenticatedMsg );