From 390496f57090178c8df43b04bac39114263939d2 Mon Sep 17 00:00:00 2001 From: nicola Date: Sun, 26 Feb 2023 12:16:15 +0100 Subject: [PATCH] minor bug --- js/cesareBrowse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 942e39d..71f8529 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -216,7 +216,7 @@ $(" ."+formaClass).hover(function(idx, element) { jQuery(document).delegate(' .espandiFrase', 'click', function() { var cid = $(this).attr('id'); var parcid=cid.split('_'); - var cantoToShow = "#"+parcid[0]+"_"+parcid[2] + var cantoToShow = parcid[0]+"_"+parcid[2] var fraseToExpand = "#"+"Frase"+parcid[4] var cantoDiv = []; var fraseDiv = []; @@ -234,6 +234,7 @@ $(" ."+formaClass).hover(function(idx, element) { if ( !(loadedCanti.has(cantoToShow))){ caricaCanto(cantoToShow,parcid) } + cantoToShow = "#"+ cantoToShow; $(cantoToShow +" > p").each((index, elem) => { cantoDiv.push(elem.id);