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.

This commit is contained in:
AlasdairSwan
2014-10-24 16:38:31 -04:00
parent be2b55590c
commit d2accb6d34

View File

@@ -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 );