fixes #2838
This commit is contained in:
8
app/views/post_votes/destroy.js.erb
Normal file
8
app/views/post_votes/destroy.js.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<% if @error %>
|
||||
Danbooru.notice("<%= j @error.to_s %>");
|
||||
<% else %>
|
||||
Danbooru.notice("Unvoted successfully");
|
||||
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
|
||||
<% end %>
|
||||
$("#vote-links-for-post-<%= @post.id %>").show();
|
||||
$("#unvote-link-for-post-<%= @post.id %>").hide();
|
||||
Reference in New Issue
Block a user