fixed comment hiding

This commit is contained in:
albert
2011-09-11 16:40:58 -04:00
parent 7483ad2e28
commit 3395c97c65
8 changed files with 60 additions and 7 deletions

View File

@@ -1 +1,11 @@
$("div.comments-for-post[data-post-id=<%= @post.id %>] div.notices").hide();
$("#hidden-comments-notice-for-<%= @post.id %>").hide();
$("div.comments-for-post[data-post-id=<%= @post.id %>] div.list-of-comments").html("<%= j(render(:partial => 'comments/partials/show/comment', :collection => @comments))%>");
<% if params[:include_below_threshold] %>
$("#threshold-comments-notice-for-<%= @post.id %>").hide();
Danbooru.Comment.highlight_threshold_comments(<%= @post.id %>);
<% else %>
Danbooru.Comment.hide_threshold_comments(<%= @post.id %>);
<% end %>