fix this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/6286721#context
parent
f859d36e07
commit
2687bda5ed
|
@ -42,7 +42,8 @@ function collapse_comment(id) {
|
||||||
|
|
||||||
if (closed) {
|
if (closed) {
|
||||||
const children_count = document.getElementById(`replies-of-c_${id}`).getElementsByClassName('comment-body').length
|
const children_count = document.getElementById(`replies-of-c_${id}`).getElementsByClassName('comment-body').length
|
||||||
document.getElementById(`children-count-${id}`).innerHTML = ` (${children_count} children)`
|
let children = children_count == 1 ? 'child' : 'children'
|
||||||
|
document.getElementById(`children-count-${id}`).innerHTML = ` (${children_count} ${children})`
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
document.getElementById(`children-count-${id}`).innerHTML = ''
|
document.getElementById(`children-count-${id}`).innerHTML = ''
|
||||||
|
|
Loading…
Reference in New Issue