stream_edit: Replace $this with e.currentTarget.

Replace the '$this' by e.currentTarget to make code clean.
This commit is contained in:
Pranav 2020-04-18 11:43:50 +05:30 committed by Tim Abbott
parent 3b71e0dbfb
commit 04d55f04ab
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ exports.initialize = function () {
// checkmark in the subscriber list.
$("#subscriptions_table").on("click", ".sub_unsub_button", function (e) {
const sub = get_sub_for_target(e.target);
const stream_row = $(this).parent();
const stream_row = $(e.currentTarget).parent();
subs.sub_or_unsub(sub, e.currentTarget);
if (!sub.subscribed) {
exports.open_edit_panel_for_row(stream_row);