Sha256: 7096d29cf58387dad5a2abf043fcbd887ece3cec2dda34a2dc87c8f44bb434c6
Contents?: true
Size: 857 Bytes
Versions: 12
Compression:
Stored size: 857 Bytes
Contents
(function() { var rootCommentableId = <%== "comments-for-#{commentable.commentable_type.demodulize}-#{commentable.id}".to_json %>; var $comments = $("#" + rootCommentableId); var component = $comments.data("comments"); component.unmountComponent(); var commentsHtml = '<%== j(render partial: "comments").strip %>'; $(".loading-comments").addClass("hide"); $comments.replaceWith(commentsHtml); $comments = $("#" + rootCommentableId); $comments.foundation(); // Re-create the component component = new Decidim.CommentsComponent($comments, $comments.data("decidim-comments")); component.mountComponent(); $comments.data("comments", component); // Update the comments count $(".comments-count", $comments).text(<%== t("decidim.components.comments.title", count: @comments_count).to_json %>); Decidim.addInputEmoji(); }());
Version data entries
12 entries across 12 versions & 1 rubygems