Files
danbooru/app/views/comments/index_for_post.js.erb
albert c478eb33b6 * Additional effects
* Fixed flash pngs
* Fixed dmail search links
2011-11-03 17:42:40 -04:00

11 lines
486 B
Plaintext

$("#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 %>