Minor changes

This commit is contained in:
nicola 2022-10-31 10:06:19 +01:00
parent ccb7cc6fbb
commit 3eef2afeba
1 changed files with 28 additions and 4 deletions

View File

@ -920,6 +920,10 @@ $(document).ready(function() {
var CantiPurgatorio = false; var CantiPurgatorio = false;
var CantiInferno = false; var CantiInferno = false;
var filtraPerOpen; var filtraPerOpen;
var CantiInfernoOpen = false;
var CantiPurgatorioOpen = false;
var CantiParadisoOpen = false;
jQuery(document).delegate('a.selectInferno', 'click', function(e) { jQuery(document).delegate('a.selectInferno', 'click', function(e) {
e.preventDefault(); e.preventDefault();
@ -937,7 +941,13 @@ $(document).ready(function() {
CantiInferno = true; CantiInferno = true;
} }
if (!CantiInfernoOpen){
$('#CantiInferno').attr('style', "display:block;") $('#CantiInferno').attr('style', "display:block;")
CantiInfernoOpen = true;
}else{
$('#CantiInferno').attr('style', "display:none;")
CantiInfernoOpen = false;
}
$('#CantiParadiso').attr('style', "display:none;") $('#CantiParadiso').attr('style', "display:none;")
$('#CantiPurgatorio').attr('style', "display:none;") $('#CantiPurgatorio').attr('style', "display:none;")
@ -961,7 +971,14 @@ $(document).ready(function() {
CantiPurgatorio = true; CantiPurgatorio = true;
} }
if (!CantiPurgatorioOpen){
$('#CantiPurgatorio').attr('style', "display:block;") $('#CantiPurgatorio').attr('style', "display:block;")
CantiPurgatorioOpen = true;
}else{
$('#CantiPurgatorio').attr('style', "display:none;")
CantiPurgatorioOpen = false;
}
$('#CantiParadiso').attr('style', "display:none;") $('#CantiParadiso').attr('style', "display:none;")
$('#CantiInferno').attr('style', "display:none;") $('#CantiInferno').attr('style', "display:none;")
@ -985,7 +1002,14 @@ $(document).ready(function() {
$('#CantiParadiso').append(tabellaCanti); $('#CantiParadiso').append(tabellaCanti);
CantiParadiso = true; CantiParadiso = true;
} }
if (!CantiParadisoOpen){
$('#CantiParadiso').attr('style', "display:block;") $('#CantiParadiso').attr('style', "display:block;")
CantiParadisoOpen = true;
}else{
$('#CantiParadiso').attr('style', "display:none;")
CantiParadisoOpen = false;
}
$('#CantiPurgatorio').attr('style', "display:none;") $('#CantiPurgatorio').attr('style', "display:none;")
$('#CantiInferno').attr('style', "display:none;") $('#CantiInferno').attr('style', "display:none;")