enable mention for comments #2466

This commit is contained in:
r888888888
2015-11-30 16:51:07 -08:00
parent e24d6e49bc
commit 8a63fb0f7c
6 changed files with 61 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<div class="comment-preview dtext dtext-preview">
</div>
<%= form_tag(comments_path, :class => "simple_form") do %>
<%= form_tag(comments_path, :class => "simple_form comment-form") do %>
<%= hidden_field "comment", "post_id", :value => post.id %>
<%= dtext_field "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
<%= submit_tag "Post", :data => { :disable_with => "Submitting..." } %>