Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

subscriptions: Fix buggy behaviour of click event handlers.

Ryan Rehmanc234b4f25401
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js
index e2227d8b983..d3648be0ebf 100644
--- a/static/js/stream_edit.js
+++ b/static/js/stream_edit.js
@@ -709,7 +709,7 @@ exports.initialize = function () {
// This handler isn't part of the normal edit interface; it's the convenient
// checkmark in the subscriber list.
- $("#subscriptions_table").on("click", ".sub_unsub_button", (e) => {
+ $("#subscriptions_table").on("click", ".check.sub_unsub_button", (e) => {
const sub = get_sub_for_target(e.target);
// Makes sure we take the correct stream_row.
const stream_row = $("#subscriptions_table div.stream-row[data-stream-id='" + sub.stream_id + "']");