mirror of https://github.com/apache/archiva.git
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:
parent
9213fa8cb8
commit
2b3a5c264a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue