Fix voting not showing 'undo vote' link if you already voted.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<% else %>
|
||||
Danbooru.notice("Vote saved");
|
||||
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
|
||||
$("#vote-links-for-post-<%= @post.id %>").hide();
|
||||
$("#unvote-link-for-post-<%= @post.id %>").show();
|
||||
<% end %>
|
||||
|
||||
$("#vote-links-for-post-<%= @post.id %>").hide();
|
||||
$("#unvote-link-for-post-<%= @post.id %>").show();
|
||||
|
||||
Reference in New Issue
Block a user