stream_popover: Fix references to topic_ops.

This apparently got lost in the refactoring that extracted
stream_popover.js.
This commit is contained in:
Tim Abbott
2017-03-08 23:30:30 -08:00
parent 5613358638
commit 70aa443c25
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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();
});
}

View File

@@ -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();
});

View File

@@ -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();
});