SAML: hide submit button when SLO info page is displayed
This commit is contained in:
parent
3441a05d2b
commit
a0378cd572
|
@ -40,3 +40,11 @@ $(document).ready(function(){
|
|||
if(login){ $("input[type=password]:first").focus(); }
|
||||
if(newwindow){ $('#appslist a[href^="http://"]').attr("target", "_blank"); }
|
||||
});
|
||||
|
||||
function isHiddenFormValueSet(option){
|
||||
if($('#lmhidden_'+option).length){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
}
|
||||
function go() {
|
||||
if(_go) {
|
||||
if($("#lmhidden_HttpRedirect").length){
|
||||
if(isHiddenFormValueSet('HttpRedirect')){
|
||||
url=$("#form").attr('action');
|
||||
window.location=url;
|
||||
}else{
|
||||
|
@ -50,6 +50,9 @@
|
|||
window.setTimeout('timer()',1000);
|
||||
}
|
||||
$(document).ready(function(){
|
||||
if(isHiddenFormValueSet('HideSubmitButton')){
|
||||
$('#form button[type=submit]').attr('disabled','disabled');
|
||||
}
|
||||
window.setTimeout('go()',10000);
|
||||
window.setTimeout('timer()',1000);
|
||||
});
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
function go() {
|
||||
if(_go) {
|
||||
if($("#lmhidden_HttpRedirect").length){
|
||||
if(isHiddenFormValueSet('HttpRedirect')){
|
||||
url=$("#form").attr('action');
|
||||
window.location=url;
|
||||
}else{
|
||||
|
@ -48,6 +48,9 @@
|
|||
window.setTimeout('timer()',1000);
|
||||
}
|
||||
$(document).ready(function(){
|
||||
if(isHiddenFormValueSet('HideSubmitButton')){
|
||||
$('#form button[type=submit]').attr('disabled','disabled');
|
||||
}
|
||||
window.setTimeout('go()',10000);
|
||||
window.setTimeout('timer()',1000);
|
||||
});
|
||||
|
|
|
@ -990,6 +990,7 @@ sub sendLogoutRequestToServiceProviders {
|
|||
if ($providerCount) {
|
||||
$self->info($info);
|
||||
$self->setHiddenFormValue( 'HttpRedirect', 'true' );
|
||||
$self->setHiddenFormValue( 'HideSubmitButton', 'true' );
|
||||
}
|
||||
|
||||
return $providerCount;
|
||||
|
|
Loading…
Reference in New Issue
Block a user