From a103701d6ae734bf90fe8307efec1f886c043df6 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 8 Oct 2018 15:28:19 +0200 Subject: [PATCH] Fix: Actually get rid of the notice when posting the first comment. --- templates/_layout/comments.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/_layout/comments.twig b/templates/_layout/comments.twig index 626611a2..6afe561d 100644 --- a/templates/_layout/comments.twig +++ b/templates/_layout/comments.twig @@ -175,7 +175,7 @@ {{ comments_entry(comment, 1, category, user, perms) }} {% endfor %} {% else %} -
+
There are no comments yet.
{% endif %} @@ -489,6 +489,9 @@ parent.insertBefore(commentElement, parent.firstElementChild); timeago().render(commentTime); + + var placeholder = document.getElementById('_no_comments_notice_' + comment.category_id); + placeholder.parentNode.removeChild(placeholder); } {% endif %}