Files
danbooru/app/views/comment_votes/create.js.erb

6 lines
182 B
Plaintext

<% if @error %>
alert("<%= escape_javascript(@error.to_s) %>");
<% else %>
$("#score-for-comment-<%= @comment.id %>").html("<%= pluralize @comment.score, 'point' %>");
<% end %>