Fix voting not showing 'undo vote' link if you already voted.

This commit is contained in:
evazion
2017-01-11 10:58:15 +00:00
parent 1724f89742
commit 51df14f07a

View File

@@ -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();