mirror of https://github.com/zulip/zulip.git
stream_edit: Replace $this with e.currentTarget.
Replace the '$this' by e.currentTarget to make code clean.
This commit is contained in:
parent
3b71e0dbfb
commit
04d55f04ab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue