Commit d2accb6d by AlasdairSwan

ECOM-369 Added handling of model save errors. Updated FormView to add preRender…

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.
parent be2b5559
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment