Skip to content

Commit e87be30

Browse files
committed
refactor: Change delete-comment-btn event handler name
1 parent 0f670cf commit e87be30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

views/media.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ block content
777777
// delete button
778778
// if uploader or admin or commenter, let them delete comment
779779
if isUploaderOrAdmin || ( user && comment.commenter._id == user._id )
780-
a.delete-comment-button(style="margin-left:9px;cursor:pointer;" commentId=comment._id) Delete
780+
a.delete-comment-thread-button(style="margin-left:9px;cursor:pointer;" commentId=comment._id) Delete
781781

782782
if isUploader && !comment.commenter.isBlocked
783783
a.block-user-button(style="margin-left:9px;cursor:pointer;" blockedusername=comment.commenter.channelUrl) Block User

views/mediaPlayerPartials/deleteCommentAndBlockUnblockUserJs.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ script.
3636

3737
}
3838

39-
$('.delete-comment-button').on('release click', function (e) {
39+
$('.delete-comment-thread-button').on('release click', function (e) {
4040

4141
var commentThread = $(this).parent().parent().parent().parent();
4242

0 commit comments

Comments
 (0)