Fix #3640: Can't undo votes.

This commit is contained in:
evazion
2018-04-13 22:48:22 -05:00
parent d66df41b58
commit 5c94c0cefe

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