minor bug

This commit is contained in:
nicola 2023-02-26 12:16:15 +01:00
parent 22b60cfdc5
commit 390496f570
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,7 @@ $(" ."+formaClass).hover(function(idx, element) {
jQuery(document).delegate(' .espandiFrase', 'click', function() { jQuery(document).delegate(' .espandiFrase', 'click', function() {
var cid = $(this).attr('id'); var cid = $(this).attr('id');
var parcid=cid.split('_'); var parcid=cid.split('_');
var cantoToShow = "#"+parcid[0]+"_"+parcid[2] var cantoToShow = parcid[0]+"_"+parcid[2]
var fraseToExpand = "#"+"Frase"+parcid[4] var fraseToExpand = "#"+"Frase"+parcid[4]
var cantoDiv = []; var cantoDiv = [];
var fraseDiv = []; var fraseDiv = [];
@ -234,6 +234,7 @@ $(" ."+formaClass).hover(function(idx, element) {
if ( !(loadedCanti.has(cantoToShow))){ if ( !(loadedCanti.has(cantoToShow))){
caricaCanto(cantoToShow,parcid) caricaCanto(cantoToShow,parcid)
} }
cantoToShow = "#"+ cantoToShow;
$(cantoToShow +" > p").each((index, elem) => { $(cantoToShow +" > p").each((index, elem) => {
cantoDiv.push(elem.id); cantoDiv.push(elem.id);