Sha256: d9725d21dc398e440a0199a993432f18db930bb8b989f9f37fe9a71e9eba9201
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
(function() { var rootCommentableId = <%== "comments-for-#{@comment.root_commentable.commentable_type.demodulize}-#{@comment.root_commentable.id}".to_json %>; var commentHtml = '<%== j(render @comment).strip %>'; var inReplyTo = <%== (reply?(@comment) ? @commentable.id : nil).to_json %>; var $comments = $("#" + rootCommentableId); var component = $comments.data("comments"); if (inReplyTo) { component.addReply(inReplyTo, commentHtml); } else { component.addThread(commentHtml); } // Update the comments count $(".comments-count", $comments).text(<%== t("decidim.components.comments.title", count: @comments_count).to_json %>); Decidim.addInputEmoji(); }());
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-comments-0.25.0.rc2 | app/views/decidim/comments/comments/create.js.erb |
decidim-comments-0.25.0.rc1 | app/views/decidim/comments/comments/create.js.erb |