tentativo risoluzione bottoni in lista risultati

This commit is contained in:
nicola 2025-03-11 19:43:44 +01:00
parent 251b3b99f7
commit 73e8a5f7a2
1 changed files with 9 additions and 11 deletions

View File

@ -664,9 +664,9 @@ $(document).ready(function() {
function addFormaListenersInCanto() {
function addFormaListenersInCanto(cantoCitazione = cantoDisplayed) {
let idn = 0
$(cantoDisplayed).find(" ." + formaClass).each(function(idx, element) {
$(cantoCitazione).find(" ." + formaClass).each(function(idx, element) {
idn = idn + 1
var ele = $(element);
@ -1869,17 +1869,9 @@ $(document).ready(function() {
}
if (!(loadedCanti.has(cid))) {
//loadCommentsBottons(cid,formeCanto, numCantica, canto)
showCanto(formeCanto, numCantica, canto)
loadedCanti.add(cid)
//drawMinimap(cid, false)
/*initCitazioni(cid);
$(cid).find(" .showcomments").each(function() {
$(this).css("display", "inline-block");
})*/
/*minim.contents().find(" .showcomments").each(function() {
$(this).css('display', 'inline-block');
})*/
}
verso = commentoRisultato[3];
@ -1921,6 +1913,12 @@ $(document).ready(function() {
return verso;
}
async function loadCommentsBottons(cid,formeCanto, numCantica, canto) {
await initCitazioni(cid)
showCanto(formeCanto, numCantica, canto)
drawMinimap(cid, false)
addFormaListenersInCanto();
}
function executeLocalSearch(testo, forme, limit, cantica, cont, resultsInCantica, resultsInCanto) {
for (var ip = 0; ip <= limit; ip++) {