app/views/decidim/comments/comments/create.js.erb in decidim-comments-0.26.10 vs app/views/decidim/comments/comments/create.js.erb in decidim-comments-0.27.0.rc1
- old
+ new
@@ -5,13 +5,9 @@
var $comments = $("#" + rootCommentableId);
var component = $comments.data("comments");
if (inReplyTo) {
component.addReply(inReplyTo, commentHtml, true);
-
- var hideButton = $("#comment_" + <%= root_comment.id %>).find(".comment__hide").first();
- hideButton.find(".show-comment-replies").first().html('<%= t("decidim.components.comment.show_replies", count: Decidim::Comments::SortedComments.for(root_comment.reload).size) %>');
- hideButton.removeClass("hide");
} else {
component.addThread(commentHtml, true);
}
// Update the comments count