miglioramento lista frase e corretto bug

This commit is contained in:
nicola 2023-02-28 20:24:38 +01:00
parent d819884889
commit 1fb6c6f13d
1 changed files with 7 additions and 7 deletions

View File

@ -202,6 +202,8 @@ $(" ."+formaClass).hover(function(idx, element) {
var lastAppend;
var fineCanto = false;
cid = cid.replace("ex","er");
if ( !(loadedCanti.has(cantoToShow))){
caricaCanto(cantoToShow,parcid)
}
@ -264,6 +266,7 @@ $(" ."+formaClass).hover(function(idx, element) {
citazioneFrase.appendTo(lastAppend)
}
$("#"+cid).attr('style', 'display: d-flex;');
//aggiungo listeners
addFormaListeners()
@ -313,12 +316,14 @@ $(" ."+formaClass).hover(function(idx, element) {
$(divAggiuntiPrima).remove();
$(divAggiuntiDopo).remove();
$(fraseToExpand +" > p").each((index, elem) => {
$(fraseToExpand +" li").each((index, elem) => {
fraseDiv.push(elem.id);
});
idUltimoVerso = "#"+fraseDiv[fraseDiv.length-1];
citazioneFrase.appendTo($(idUltimoVerso));
$("#"+cid).css("display", "none");
});
function caricaCanto(canto, parcid){
@ -347,7 +352,6 @@ $(" ."+formaClass).hover(function(idx, element) {
if (selectedVista=='frasi'){
loadFrasi();
}
//$(cantoDisplayed).css("display", "none");
return
}
@ -381,8 +385,6 @@ $(" ."+formaClass).hover(function(idx, element) {
canto=forma.canto
}
if (!setVersicontesto.has(forma.verso)){
//elverso=createDivVersoLI(cantica, formaItem[3], 'Canto_' + formaItem[1])
divVerso = createDivVersoLI(forma.cantica, forma.verso, forma.canto)
versiIniziali.append(divVerso)
listaVersi.append(versiIniziali)
@ -404,12 +406,9 @@ $(" ."+formaClass).hover(function(idx, element) {
citazione.appendTo(divVerso);
var spanBadgeExpand = $('<span />');
//var expandIcon = "<img src='./images/espandi.png' style='width:15px;'>"
var expandIcon = '<ion-icon name="ellipsis-vertical-outline"></ion-icon>';
spanBadgeExpand.attr('class', 'badge badge-primary badge-pill my-0 mx-2 espandiFrase');
var spanBadgeReduce = $('<span />');
//var reduceIcon = "<img src='./images/riduci.png' style='width:15px;'>"
//var reduceIcon = '<ion-icon name="close-outline"></ion-icon>';
var reduceIcon = '<ion-icon name="arrow-up-outline"></ion-icon>';
spanBadgeReduce.attr('class', 'badge badge-primary badge-pill my-0 mx-2 riduciFrase');
@ -419,6 +418,7 @@ $(" ."+formaClass).hover(function(idx, element) {
spanBadgeReduce.attr('id', getCantica(numeroCantica)+"Canto_er_"+canto+"_"+risultato+"_"+numeroRisultato);
spanBadgeReduce.append(reduceIcon)
spanBadgeReduce.css("display", "none");
spanBadgeExpand.appendTo(comandi);
spanBadgeReduce.appendTo(comandi);