diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js
index 6927762..1cfc54e 100644
--- a/js/cesareBrowse.js
+++ b/js/cesareBrowse.js
@@ -1234,7 +1234,7 @@ function resetFrasi(){
var idCommento = "Commento_"+idcantica+"_"+canto+"_"+verso;
//if (hasComments(idCommento)){
if (numberOfComments(idCommento)>0){
- createCommentSpan(idCommento, elverso)
+ createCommentSpan(idCommento, elverso, numberOfComments)
console.log("Numero commenti: "+numberOfComments(idCommento))
}
@@ -1299,13 +1299,16 @@ function resetFrasi(){
}
- function createCommentSpan(idVerso, elementoverso) {
+ function createCommentSpan(idVerso, elementoverso, numberOfComments) {
var spanoccorrenza = $('')
spanoccorrenza.attr('id', idVerso)
//btn-sm btn-outline-secondary
spanoccorrenza.attr('class', 'btn btn-sm btn-danger showcomments px-1 pt-1 pb-0 ml-1');
- var commentIcon = '';
+ var commentIcon = '';
+ //var number = " "+numberOfComments.toString();
spanoccorrenza.append(commentIcon)
+ //spanoccorrenza.append(number)
+
spanoccorrenza.appendTo(elementoverso)