fixes #69: Comment voting non functional
This commit is contained in:
5
app/views/comment_votes/create.js.erb
Normal file
5
app/views/comment_votes/create.js.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<% if @comment_vote.errors.any? %>
|
||||
Danbooru.j_error("<%= j @comment_vote.errors.full_messages.join('; ') %>");
|
||||
<% elsif @comment_vote.is_negative? %>
|
||||
$(".comment[data-comment-id=<%= @comment.id %>]").remove();
|
||||
<% end %>
|
||||
@@ -1 +0,0 @@
|
||||
Danbooru.Utility.j_alert(<%= @exception.to_s.to_json);
|
||||
Reference in New Issue
Block a user