Files
danbooru/app/views/comment_votes/create.js.erb
2011-11-03 16:30:06 -04:00

6 lines
222 B
Plaintext

<% if @comment_vote.errors.any? %>
Danbooru.error("<%= j @comment_vote.errors.full_messages.join('; ') %>");
<% elsif @comment_vote.is_negative? %>
$(".comment[data-comment-id=<%= @comment.id %>]").remove();
<% end %>