From b1782080336e457dc36edc50ff16a9fb34acac8a Mon Sep 17 00:00:00 2001 From: nicola Date: Wed, 12 Mar 2025 17:36:31 +0100 Subject: [PATCH] Fissato un baco nella gestione risultati --- js/browseMgr_5.1.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/js/browseMgr_5.1.js b/js/browseMgr_5.1.js index 64213bf..fea83c9 100644 --- a/js/browseMgr_5.1.js +++ b/js/browseMgr_5.1.js @@ -1824,7 +1824,9 @@ $(document).ready(function() { var idFrase = 0; var cid; var numCantica; - var ultimoVersoPrecedente; + var ultimoCanto; + var ultimoVerso; + elencoRiferimenti = $("#vistaFrasi"); elencoRiferimenti.empty(); $("#displaynote").empty(); @@ -1881,7 +1883,7 @@ $(document).ready(function() { versiFrase.append(proemio) } else { verso = Number(verso); - if (verso <= ultimoVersoPrecedente) { + if (canto <= ultimoCanto && verso <= ultimoVerso) { $("#" + cantica + '_Canto_' + canto + '_' + verso).addClass("mark ") continue; } @@ -1894,8 +1896,8 @@ $(document).ready(function() { versiFrase.append(liVerso) verso++ } - - ultimoVersoPrecedente = verso; + ultimoVerso = verso-1; + ultimoCanto = canto; listaVersi.append(versiFrase) elencoRiferimenti.append(listaVersi) @@ -1917,8 +1919,8 @@ $(document).ready(function() { async function loadCommentsBottons(cid, formeCanto, numCantica, canto) { await initCitazioni(cid) showCanto(formeCanto, numCantica, canto) - drawMinimap(cid, false) - addFormaListenersInCanto(); + //drawMinimap(cid, false) + addFormaListenersInCanto(cid); } function executeLocalSearch(testo, forme, limit, cantica, cont, resultsInCantica, resultsInCanto) {