fixed comment count bug in moderation portal

This commit is contained in:
2026-04-28 15:50:58 +02:00
parent 5b77b0b524
commit 950ac25828
4 changed files with 226 additions and 47 deletions

View File

@@ -1131,9 +1131,14 @@ function submitComment(contributionId) {
Swal.fire('Fehler', response.error, 'error');
return;
}
// Clears Input and reloads Comments
if (input) input.value = '';
loadComments(contributionId);
Swal.fire({
title: 'Eingereicht!',
text: 'Ihr Kommentar wurde erfolgreich eingereicht und wird nach Prüfung durch das Moderationsteam veröffentlicht.',
icon: 'success',
timer: 3000,
showConfirmButton: true
});
});
}