fix issue on dynamic rememberme checkbox

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424187 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-19 22:38:30 +00:00
parent 9213fa8cb8
commit 2b3a5c264a
1 changed files with 3 additions and 1 deletions

View File

@ -368,12 +368,14 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
var rememberMe=window.redbackRuntimeConfiguration.findPropertyValue('security.rememberme.enabled');
$.log("rememberMe:"+rememberMe);
if (rememberMe!='true'){
if (rememberMe=='false'){
$("#user-login-form-rememberme-label" ).hide();
$("#user-login-form-rememberme" ).attr("disabled","true");
if($("#user-login-form-rememberme" ).get(0 ).checked){
$("#user-login-form-rememberme" ).get(0 ).checked=false;
}
$("#user-login-form-username" ).val("");
$("#user-login-form-password" ).val("");
}
var userLoginForm = $("#user-login-form");