fixes #25: Voting on posts does not have any effect (also added to post/show)

This commit is contained in:
albert
2011-09-13 18:08:38 -04:00
parent 89a406db33
commit e8d16b2b33
5 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<% if @error %>
alert("<%= escape_javascript @error.to_s %>");
Danbooru.j_error("<%= j @error.to_s %>");
<% else %>
$("#score-for-post-<%= @post.id %> span").text(<%= @post.score %>);
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
<% end %>