Disable timer on IDP list (#141)
This commit is contained in:
parent
6781054397
commit
e29a65e92b
|
@ -68,6 +68,7 @@ if ( $portal->process() ) {
|
||||||
SKIN => $skin,
|
SKIN => $skin,
|
||||||
URL => $portal->{urldc},
|
URL => $portal->{urldc},
|
||||||
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
||||||
|
ACTIVE_TIMER => $portal->{activeTimer},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,6 +137,7 @@ elsif ( $portal->{error} == PE_CONFIRM ) {
|
||||||
MSG => $portal->info(),
|
MSG => $portal->info(),
|
||||||
SKIN => $skin,
|
SKIN => $skin,
|
||||||
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
||||||
|
ACTIVE_TIMER => $portal->{activeTimer},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,6 +151,7 @@ elsif ( my $info = $portal->info() ) {
|
||||||
SKIN => $skin,
|
SKIN => $skin,
|
||||||
URL => $portal->{urldc},
|
URL => $portal->{urldc},
|
||||||
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
HIDDEN_INPUTS => $portal->buildHiddenForm(),
|
||||||
|
ACTIVE_TIMER => $portal->{activeTimer},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,16 @@
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
// Check if timer should be activated (true by default)
|
||||||
|
var activeTimer = true;
|
||||||
|
if (!<TMPL_VAR NAME="ACTIVE_TIMER">) {activeTimer = false;}
|
||||||
|
|
||||||
|
if (activeTimer) {
|
||||||
window.setTimeout('go()',5000);
|
window.setTimeout('go()',5000);
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
|
} else {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,16 @@
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
// Check if timer should be activated (true by default)
|
||||||
|
var activeTimer = true;
|
||||||
|
if (!<TMPL_VAR NAME="ACTIVE_TIMER">) {activeTimer = false;}
|
||||||
|
|
||||||
|
if (activeTimer) {
|
||||||
window.setTimeout('go()',10000);
|
window.setTimeout('go()',10000);
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
|
} else {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,16 @@
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
// Check if timer should be activated (true by default)
|
||||||
|
var activeTimer = true;
|
||||||
|
if (!<TMPL_VAR NAME="ACTIVE_TIMER">) {activeTimer = false;}
|
||||||
|
|
||||||
|
if (activeTimer) {
|
||||||
window.setTimeout('go()',5000);
|
window.setTimeout('go()',5000);
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
|
} else {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,16 @@
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
// Check if timer should be activated (true by default)
|
||||||
|
var activeTimer = true;
|
||||||
|
if (!<TMPL_VAR NAME="ACTIVE_TIMER">) {activeTimer = false;}
|
||||||
|
|
||||||
|
if (activeTimer) {
|
||||||
window.setTimeout('go()',10000);
|
window.setTimeout('go()',10000);
|
||||||
window.setTimeout('timer()',1000);
|
window.setTimeout('timer()',1000);
|
||||||
|
} else {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -796,7 +796,7 @@ sub extractFormInfo {
|
||||||
|
|
||||||
foreach ( keys %{ $self->{_idpList} } ) {
|
foreach ( keys %{ $self->{_idpList} } ) {
|
||||||
$html .=
|
$html .=
|
||||||
'<tr><td><input type="radio" name="idp" onclick="stop()" value="'
|
'<tr><td><input type="radio" name="idp" value="'
|
||||||
. $_
|
. $_
|
||||||
. '" /></td><td>'
|
. '" /></td><td>'
|
||||||
. $self->{_idpList}->{$_}->{name}
|
. $self->{_idpList}->{$_}->{name}
|
||||||
|
@ -821,6 +821,9 @@ sub extractFormInfo {
|
||||||
|
|
||||||
$self->info($html);
|
$self->info($html);
|
||||||
|
|
||||||
|
# Timer not active on IDP list
|
||||||
|
$self->{activeTimer} = 0;
|
||||||
|
|
||||||
# Delete existing IDP resolution cookie
|
# Delete existing IDP resolution cookie
|
||||||
push @{ $self->{cookie} },
|
push @{ $self->{cookie} },
|
||||||
$self->cookie(
|
$self->cookie(
|
||||||
|
|
|
@ -366,6 +366,7 @@ sub setDefaultValues {
|
||||||
$self->{mailUrl} ||= $self->{portal} . "/mail.pl";
|
$self->{mailUrl} ||= $self->{portal} . "/mail.pl";
|
||||||
$self->{issuerDB} ||= 'Null';
|
$self->{issuerDB} ||= 'Null';
|
||||||
$self->{multiValuesSeparator} ||= '; ';
|
$self->{multiValuesSeparator} ||= '; ';
|
||||||
|
$self->{activeTimer} = 1 unless ( defined( $self->{activeTimer} ) );
|
||||||
|
|
||||||
# Set default userDB and passwordDB to DBI if authentication is DBI
|
# Set default userDB and passwordDB to DBI if authentication is DBI
|
||||||
if ( $self->{authentication} =~ /DBI/i ) {
|
if ( $self->{authentication} =~ /DBI/i ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user