diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 42848f6..beac507 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -1123,7 +1123,14 @@ function resetFrasi(){ 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){