diff --git a/app/views/comment_votes/create.js.erb b/app/views/comment_votes/create.js.erb index ee619d299..37f935818 100644 --- a/app/views/comment_votes/create.js.erb +++ b/app/views/comment_votes/create.js.erb @@ -1,5 +1,9 @@ <% if @comment_vote.errors.any? %> Danbooru.error("<%= j @comment_vote.errors.full_messages.join('; ') %>"); -<% elsif @comment_vote.is_negative? %> - $(".comment[data-comment-id=<%= @comment.id %>]").remove(); +<% else %> + <% if @comment_vote.is_negative? %> + $(".comment[data-comment-id=<%= @comment.id %>]").remove(); + <% end %> + $("#comment-vote-up-link-for-<%= @comment.id %>").remove(); + $("#comment-vote-down-link-for-<%= @comment.id %>").remove(); <% end %> diff --git a/app/views/comments/partials/show/_comment.html.erb b/app/views/comments/partials/show/_comment.html.erb index 2cf3ba51b..3e7e45e54 100644 --- a/app/views/comments/partials/show/_comment.html.erb +++ b/app/views/comments/partials/show/_comment.html.erb @@ -16,8 +16,8 @@