removed CesareBrowse

messo commenti da Browse manager
This commit is contained in:
nicola 2024-11-19 15:39:09 +01:00
parent 08d9616b31
commit e01d618f34
1 changed files with 10 additions and 10 deletions

View File

@ -840,10 +840,10 @@ $(document).ready(function() {
if (canto.length == 1)
canto = '0' + canto
commentsArray = getVersiConCitazioni(cantica, canto)
// commentsArray = getVersiConCitazioni(cantica, canto)
commentsJson = getVersiConCitazioniJson(cantica, canto)
commentsArray.forEach(removeHtmlTags2)
// commentsArray.forEach(removeHtmlTags2)
/*
var numVerso1;
var numVerso2;
var versoCitazione;
@ -860,11 +860,11 @@ $(document).ready(function() {
if (numVerso1 < numVerso2) return -1;
if (numVerso1 > numVerso2) return 1;
return 0;
});
});*/
}
/* Luca: removeHtmlTags2 e' la versione compatta di removeHtmlTags*/
function removeHtmlTags2(value) {
/*function removeHtmlTags2(value) {
var text = ""
for (const key in value) {
text = `${value[key]}`
@ -877,7 +877,7 @@ $(document).ready(function() {
}
}
}
*/
function removeHtmlTags(value) {
var text = value;
@ -1231,7 +1231,7 @@ $(document).ready(function() {
divFrammAnnot.appendTo(collapse);
}
function hasComments(cid) {
/* function hasComments(cid) {
var id = cid.substr(9);
for (var pos in commentsArray) {
var comments = commentsArray[pos]
@ -1241,7 +1241,7 @@ $(document).ready(function() {
}
}
return false;
}
}*/
function hasCommentsJson(cid) {
@ -1255,11 +1255,11 @@ $(document).ready(function() {
}
function numberOfComments(cid) {
/* function numberOfComments(cid) {
var id = cid.substr(9);
return commentsArray.filter(x => x.verso == id).length
}
*/
function numberOfCommentsJson(cid) {
var cntc = 0
var id = cid.substr(9);