This commit is contained in:
David Gil
2015-08-11 18:05:12 +02:00
parent d86eb9f550
commit 9d2bece0b3
4 changed files with 22 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
var parent_id = '<%= dom_id(@parent) %>';
App.Comments.reset_and_hide_form(parent_id);
<% if @parent.is_a?(Debate) -%>
App.Comments.reset_form(parent_id);
<% else -%>
App.Comments.reset_and_hide_form(parent_id);
<% end -%>
App.Comments.add_response(parent_id, "<%= j(render @comment) %>");