mirror of
https://github.com/zhigang1992/tsemple.git
synced 2026-04-30 21:52:18 +08:00
Reset new_comment form
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<% if @comment.errors.empty? %>
|
||||
$('#comments-for-<%= @comment.commentable_type.downcase %>-<%= @comment.commentable_id %>').append('<%= j render @comment %>').find('.empty-message').remove();
|
||||
$('#new_comment textarea').val('');
|
||||
$('#new_comment .preview').val('');
|
||||
$('#new_comment [data-toggle="tab"]:first').tab('show');
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user