Aevann 2024-04-20 02:09:19 +02:00
parent f859d36e07
commit 2687bda5ed
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ function collapse_comment(id) {
if (closed) {
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 {
document.getElementById(`children-count-${id}`).innerHTML = ''