right
This commit is contained in:
parent
1e43963535
commit
200c2461b8
222 changed files with 115 additions and 112 deletions
|
@ -6,10 +6,12 @@ if (typeof showNewCommentCounts === 'undefined') {
|
|||
if (lastCount) {
|
||||
const newComments = newTotal - lastCount.c
|
||||
if (newComments > 0) {
|
||||
document.querySelectorAll(`#post-${postId} .new-comments`).forEach(elem => {
|
||||
elems = document.getElementsByClassName(`${postId}-new-comments`)
|
||||
for (const elem of elems)
|
||||
{
|
||||
elem.textContent = ` (+${newComments})`
|
||||
elem.classList.remove("d-none")
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue