Cambiato simbolo di nota

This commit is contained in:
nicola 2023-11-21 17:45:18 +01:00
parent 42b2f6bb7b
commit 26c247f2ce
1 changed files with 6 additions and 3 deletions

View File

@ -1234,7 +1234,7 @@ function resetFrasi(){
var idCommento = "Commento_"+idcantica+"_"+canto+"_"+verso; var idCommento = "Commento_"+idcantica+"_"+canto+"_"+verso;
//if (hasComments(idCommento)){ //if (hasComments(idCommento)){
if (numberOfComments(idCommento)>0){ if (numberOfComments(idCommento)>0){
createCommentSpan(idCommento, elverso) createCommentSpan(idCommento, elverso, numberOfComments)
console.log("Numero commenti: "+numberOfComments(idCommento)) console.log("Numero commenti: "+numberOfComments(idCommento))
} }
@ -1299,13 +1299,16 @@ function resetFrasi(){
} }
function createCommentSpan(idVerso, elementoverso) { function createCommentSpan(idVerso, elementoverso, numberOfComments) {
var spanoccorrenza = $('<button />') var spanoccorrenza = $('<button />')
spanoccorrenza.attr('id', idVerso) spanoccorrenza.attr('id', idVerso)
//btn-sm btn-outline-secondary //btn-sm btn-outline-secondary
spanoccorrenza.attr('class', 'btn btn-sm btn-danger showcomments px-1 pt-1 pb-0 ml-1'); spanoccorrenza.attr('class', 'btn btn-sm btn-danger showcomments px-1 pt-1 pb-0 ml-1');
var commentIcon = '<ion-icon name="attach"></ion-icon>'; var commentIcon = '<ion-icon name="information"></ion-icon>';
//var number = " "+numberOfComments.toString();
spanoccorrenza.append(commentIcon) spanoccorrenza.append(commentIcon)
//spanoccorrenza.append(number)
spanoccorrenza.appendTo(elementoverso) spanoccorrenza.appendTo(elementoverso)