bug fixing per selezione commenti del verso
This commit is contained in:
parent
59e5da2d38
commit
25df11b122
|
@ -1123,7 +1123,14 @@ function resetFrasi(){
|
||||||
|
|
||||||
function hasCommentsJson(cid){
|
function hasCommentsJson(cid){
|
||||||
|
|
||||||
return commentsJson.hasOwnProperty(cid.substr(9));
|
//return commentsJson.hasOwnProperty(cid.substr(9));
|
||||||
|
var id=cid.substr(9);
|
||||||
|
for (const [key, value] of Object.entries(commentsJson)) {
|
||||||
|
if(key==id || key.startsWith(id+'-'))
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function numberOfComments(cid){
|
function numberOfComments(cid){
|
||||||
|
|
Loading…
Reference in New Issue