fix error handling on resetPassword

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1300949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-15 12:09:24 +00:00
parent 2eb122127b
commit 69c540f321
3 changed files with 5 additions and 4 deletions

View File

@ -49,14 +49,14 @@ $(function() {
$.cookie('redback_login', null);
}
logout=function(){
logout=function(screenChange){
deleteLoginCookie();
$("#login-link").show();
$("#register-link").show();
$("#logout-link").hide();
$("#change-password-link").hide();
hideElementWithKarma();
screenChange();
if (screenChange) screenChange();
$("#main-content").html("");
$.ajax({
url: 'restServices/redbackServices/loginService/logout'

View File

@ -38,7 +38,7 @@
<a href="#" onclick="editUserDetailsBox();">${$.i18n.prop('edit.details')}</a>
</li>
<li id="logout-link" class="pull-right" style="display: none">
<a href="#" onclick="logout();" id="logout-link-a">
<a href="#" onclick="logout(true);" id="logout-link-a">
<span class="label label-important force-upper-case">${$.i18n.prop('logout')}</span>
</a>
</li>

View File

@ -414,7 +414,7 @@ $(function() {
$.log("resetPasswordForm:"+key);
validateKey(key,false);
$.log("resetPasswordForm#validateKey ok");
displaySearch();
//displaySearch();
}
passwordReset=function(){
@ -668,6 +668,7 @@ $(function() {
error: function(result) {
var obj = jQuery.parseJSON(result.responseText);
displayRedbackError(obj);
logout(false);
}
});