mirror of https://github.com/apache/archiva.git
prevent js error when updating password
This commit is contained in:
parent
24be759078
commit
e1bad647dd
|
@ -38,6 +38,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
|
|||
var kUser = new User(user.username, user.password, user.confirmPassword,user.fullName,user.email,user.permanent,user.validated,
|
||||
user.timestampAccountCreation,user.timestampLastLogin,user.timestampLastPasswordChange,user.locked,
|
||||
user.passwordChangeRequired,null,user.readOnly,user.userManagerId);
|
||||
|
||||
kUser.rememberme(user.rememberme());
|
||||
var userJson=ko.toJSON(kUser);
|
||||
$.log("reccordLoginCookie:"+userJson);
|
||||
|
|
|
@ -604,7 +604,7 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
|
|||
window.modalEditUserBox = $("#modal-user-edit").modal({backdrop:'static',show:false});
|
||||
window.modalEditUserBox.bind('hidden', function () {
|
||||
$("#modal-user-edit-err-message").hide();
|
||||
})
|
||||
});
|
||||
$("#modal-user-edit").find("#modal-user-edit-ok").on( "click keydown keypress", function(e) {
|
||||
e.preventDefault();
|
||||
$.log("user.js#editUserDetailsBox");
|
||||
|
@ -620,6 +620,10 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
|
|||
password:$("#modal-user-edit").find("#userEditFormNewPassword").val(),
|
||||
confirmPassword:$("#modal-user-edit").find("#userEditFormNewPasswordConfirm").val()
|
||||
};
|
||||
var kuser =getUserFromLoginCookie();
|
||||
user.rememberme=function(){
|
||||
return kuser.rememberme();
|
||||
}
|
||||
editUserDetails(user);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue