comments.js: clean up unnecessary code.
* Remove Dtext import (no longer used). * Remove create.js.erb template (not used). * Don't hide `#hidden-comments-notice-for-...` (didn't exist).
This commit is contained in:
@@ -1 +0,0 @@
|
||||
$("div.comments-for-post[data-post-id=<%= @comment.post_id %>] div.list-of-comments").append("<%= escape_javascript(render('comments/partials/show/comment', :comment => @comment)) %>");
|
||||
@@ -1,5 +1,5 @@
|
||||
$("#hidden-comments-notice-for-<%= @post.id %>").hide();
|
||||
$("#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))%>");
|
||||
$(window).trigger("danbooru:index_for_post", [<%= @post.id %>, current_comment_section]);
|
||||
$(window).trigger("danbooru:index_for_post", [<%= @post.id %>]);
|
||||
|
||||
Reference in New Issue
Block a user