Sha256: b90d2037f88675e14d835467240894ff9e3ce56925df0381efc16a372f4d332c
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
$( document ).on('ready turbolinks:load', function() { $('textarea.talkie-comment-body-textarea').mentionsInput({ showAvatars: false, allowRepeat: true, minChars: 2, onDataRequest: function (mode, query, callback) { $.getJSON('/talkie/mentions', { q: query }, function(responseData) { callback.call(this, responseData); }); } }); $("form.talkie-comments-form").on("submit", function(event) { event.stopPropagation(); $commentsForm = $(this); $commentsForm.find('textarea.talkie-comment-body-textarea').mentionsInput('getMentions', function(data) { $commentsForm.find(".comment-mentions").val(JSON.stringify(data)); }); }) })
Version data entries
4 entries across 4 versions & 1 rubygems