Sha256: 473af411ee2fe893b37c0179f4ca657cebed6bdaf643e1096481a9ed0773b0b8
Contents?: true
Size: 625 Bytes
Versions: 15
Compression:
Stored size: 625 Bytes
Contents
import CommentsComponent from "src/decidim/comments/comments.component" window.Decidim.CommentsComponent = CommentsComponent; const commentsInitializer = () => { // Mount comments component $("[data-decidim-comments]").each((_i, el) => { const $el = $(el); let comments = $(el).data("comments"); if (!comments) { comments = new CommentsComponent($el, $el.data("decidim-comments")); } comments.mountComponent(); $(el).data("comments", comments); }); } // If no jQuery is used the Tribute feature used in comments to autocomplete // mentions stops working $(() => commentsInitializer());
Version data entries
15 entries across 15 versions & 1 rubygems