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);
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");
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);
});
}