Files
nairobi/app/views/legislation/annotations/new_comment.js.erb

4 lines
200 B
Plaintext

$("#comments-box-<%= @annotation.id %>").replaceWith("<%= j render('comments_box', annotation: @annotation) %>").show();
<%= render 'comments_box_form', comment: @comment, annotation: @annotation %>