app/views/decidim/comments/comments/create.js.erb in decidim-comments-0.28.4 vs app/views/decidim/comments/comments/create.js.erb in decidim-comments-0.29.0.rc1

- old
+ new

@@ -6,11 +6,11 @@ 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) %>'); + var hideButton = $("#comment_" + <%= root_comment.id %>).find("[data-comment-hide]").first(); + hideButton.find("[data-show-comment-reply]").first().html('<%= t("decidim.components.comment.show_replies", count: Decidim::Comments::SortedComments.for(root_comment.reload).size) %>'); } else { component.addThread(commentHtml, true); }