<% if flash[:notice] %>
  Danbooru.Utility.notice("<%= j flash[:notice] %>");
<% end %>

var $comment = $("article#comment_<%= @comment_vote.comment_id %>");
$comment.replaceWith("<%= j render_comment(@comment_vote.comment, current_user: CurrentUser.user) %>");
