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