From 70aa443c25c841628459f0763fff7da1d06b0a5b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 8 Mar 2017 23:30:30 -0800 Subject: [PATCH] stream_popover: Fix references to topic_ops. This apparently got lost in the refactoring that extracted stream_popover.js. --- static/js/click_handlers.js | 2 +- static/js/muting_ui.js | 2 +- static/js/popovers.js | 2 +- static/js/settings.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index 7125733894..950b5b5193 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -170,7 +170,7 @@ $(function () { var stream_id = $(e.currentTarget).attr('data-stream-id'); var topic = $(e.currentTarget).attr('data-topic-name'); var stream = stream_data.get_sub_by_id(stream_id); - popovers.topic_ops.mute(stream.name, topic); + stream_popover.topic_ops.mute(stream.name, topic); }); // RECIPIENT BARS diff --git a/static/js/muting_ui.js b/static/js/muting_ui.js index 5f2dc250bd..32fb736aa7 100644 --- a/static/js/muting_ui.js +++ b/static/js/muting_ui.js @@ -55,7 +55,7 @@ exports.notify_with_undo_option = (function () { meta.$mute.find("#unmute").click(function () { // it should reference the meta variable and not get stuck with // a pass-by-value of stream, topic. - popovers.topic_ops.unmute(meta.stream, meta.topic); + stream_popover.topic_ops.unmute(meta.stream, meta.topic); animate.fadeOut(); }); } diff --git a/static/js/popovers.js b/static/js/popovers.js index b4ebf277b8..d8c7654d34 100644 --- a/static/js/popovers.js +++ b/static/js/popovers.js @@ -645,7 +645,7 @@ exports.register_click_handlers = function () { var stream = $(e.currentTarget).data('msg-stream'); var topic = $(e.currentTarget).data('msg-topic'); popovers.hide_actions_popover(); - exports.topic_ops.mute(stream, topic); + stream_popover.topic_ops.mute(stream, topic); e.stopPropagation(); e.preventDefault(); }); diff --git a/static/js/settings.js b/static/js/settings.js index c639069690..d5487e6e26 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -954,7 +954,7 @@ function _setup_page() { var stream = $row.data("stream"); var topic = $row.data("topic"); - popovers.topic_ops.unmute(stream, topic); + stream_popover.topic_ops.unmute(stream, topic); $row.remove(); e.stopImmediatePropagation(); });