partial fix for #1263 (posts)

This commit is contained in:
Toks
2013-06-29 12:40:51 -04:00
parent b4ffd10357
commit 9bffc081e4
7 changed files with 39 additions and 1 deletions

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