mirror of https://github.com/apache/archiva.git
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:
parent
5a2a341ad8
commit
5b7734ba30
|
@ -35,7 +35,6 @@ function(jquery,sammy,utils) {
|
|||
removeMediumSpinnerImg("#main-content");
|
||||
clearUserMessages();
|
||||
displayErrorMessage($.i18n.prop('authz.karma.needed'));
|
||||
|
||||
userLogged(function(user){
|
||||
userLoggedCallbackFn(user);
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue