in case of issue when reseting password error message must be displayed in the modal box

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1409348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-14 20:04:26 +00:00
parent 5a2a341ad8
commit 5b7734ba30
2 changed files with 8 additions and 2 deletions

View File

@ -35,7 +35,6 @@ function(jquery,sammy,utils) {
removeMediumSpinnerImg("#main-content");
clearUserMessages();
displayErrorMessage($.i18n.prop('authz.karma.needed'));
userLogged(function(user){
userLoggedCallbackFn(user);
});

View File

@ -495,7 +495,14 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
newLocation+="#search";
}
window.location=newLocation;
}
},
statusCode: {
500: function(data){
clearUserMessages();
displayRestError($.parseJSON(data.responseText),"modal-password-change-err-message");
$("#modal-password-change-err-message" ).show();
}
}
});
}