From 04d55f04ab2631d5c288d9dc6b0059f16b881e0e Mon Sep 17 00:00:00 2001 From: Pranav Date: Sat, 18 Apr 2020 11:43:50 +0530 Subject: [PATCH] stream_edit: Replace $this with e.currentTarget. Replace the '$this' by e.currentTarget to make code clean. --- static/js/stream_edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js index 3cffb9a3db..524c0c471a 100644 --- a/static/js/stream_edit.js +++ b/static/js/stream_edit.js @@ -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);