trigger login if remember_login checked
This commit is contained in:
parent
8d2238e055
commit
aa8bdc7f14
|
@ -17,8 +17,19 @@ OC.Login = _.extend(OC.Login || {}, {
|
|||
.addClass('icon-loading-small')
|
||||
.css('opacity', '1');
|
||||
return true;
|
||||
},
|
||||
|
||||
rememberLogin: function(){
|
||||
if($(this).is(":checked")){
|
||||
if($("#user").val() && $("#password").val()) {
|
||||
$('#submit').trigger('click');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('form[name=login]').submit(OC.Login.onLogin);
|
||||
|
||||
$('#remember_login').click(OC.Login.rememberLogin);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue