Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).on("click", ".comment-icon.inactive", function(e){
// deactivate/hide other comment boxes that are opened, so we have only
// one comment box opened at a time
commentBoxes.hideOpenedComments();
var allActiveIcons = getPadOuter().find('#commentIcons').find(".comment-icon.active");
toggleActiveCommentIcon(allActiveIcons);
// activate/show only target comment
toggleActiveCommentIcon($(this));
var commentId = targetCommentIdOf(e);
commentBoxes.showComment(commentId, e, true);
});
}