Remember if the checkbox was checked

This commit is contained in:
Clément OUDOT 2022-05-12 17:49:46 +02:00
parent 901a6d3697
commit 06682bf976
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,7 @@ $(window).on("load", function() {
// when global checkbox is clicked
$("#globalrememberauthchoice").change(function() {
var checked = this.checked;
alert("checked " +checked);
$( 'input[name="rememberauthchoice"]' ).each(function() {
$( this ).val(checked);
});
@ -116,6 +117,11 @@ $(window).on("load", function() {
{
// show timer
$( "div#remembertimer" ).show();
// check all checkboxes
$("#globalrememberauthchoice").prop('checked',true);
$( 'input[name="rememberauthchoice"]' ).each(function() {
$( this ).val('true');
});
// launch remembered authentication choice when timer reaches 0
window.setTimeout( launchAuthenticationChoice, 1000 );
}