Sha256: c11f8b6d2c28b7f51da5820a0b4c8934a4bee9b9b7a09dc7e6746701cdfedb7b
Contents?: true
Size: 706 Bytes
Versions: 18
Compression:
Stored size: 706 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, true); } else { component.addThread(commentHtml, true); } // Update the comments count $(".comments-count", $comments).text(<%== t("decidim.components.comments.title", count: @comments_count).to_json %>); Decidim.addInputEmoji(); }());
Version data entries
18 entries across 18 versions & 1 rubygems