comments: put sticky option in popup menu instead of in edit form.
Put the option to sticky a comment in the "..." popup menu instead of in the comment edit form. This makes it more consistent with deleting or undeleting a comment. Also fix a bug where the comment undelete icon didn't show up due to a typo.
This commit is contained in:
1
app/views/comments/update.js.erb
Normal file
1
app/views/comments/update.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
$("#comment_<%= @comment.id %>").replaceWith("<%= j render_comment(@comment, current_user: CurrentUser.user) %>");
|
||||
Reference in New Issue
Block a user