mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
stream_popover: Fix references to topic_ops.
This apparently got lost in the refactoring that extracted stream_popover.js.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user