bug fixing per selezione commenti del verso

This commit is contained in:
cesare 2023-12-20 14:44:57 +01:00
parent 59e5da2d38
commit 25df11b122
1 changed files with 8 additions and 1 deletions

View File

@ -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){