comments: add reply/vote links to comment search page (#4236).

This commit is contained in:
evazion
2019-12-30 22:40:56 -06:00
parent 7da85a4eb7
commit e02a145da2
4 changed files with 31 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
$("#threshold-comments-notice-for-<%= @post.id %>").hide();
var current_comment_section = $("div.comments-for-post[data-post-id=<%= @post.id %>] div.list-of-comments");
current_comment_section.html("<%= j(render(partial: 'comments/partials/show/comment', collection: @comments, locals: { dtext_data: DText.preprocess(@comments.map(&:body)) })) %>");
current_comment_section.html("<%= j(render(partial: 'comments/partials/show/comment', collection: @comments, locals: { context: :index_for_post, dtext_data: DText.preprocess(@comments.map(&:body)) })) %>");
$(window).trigger("danbooru:index_for_post", [<%= @post.id %>]);