mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 09:03:57 +00:00
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
24 lines
566 B
JavaScript
24 lines
566 B
JavaScript
exports.loaded = false;
|
|
|
|
exports.set_up = function () {
|
|
exports.loaded = true;
|
|
$("body").on("click", ".settings-unmute-topic", function (e) {
|
|
const $row = $(this).closest("tr");
|
|
const stream_id = parseInt($row.attr("data-stream-id"), 10);
|
|
const topic = $row.attr("data-topic");
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
muting_ui.unmute(stream_id, topic);
|
|
$row.remove();
|
|
});
|
|
|
|
muting_ui.set_up_muted_topics_ui();
|
|
};
|
|
|
|
exports.reset = function () {
|
|
exports.loaded = false;
|
|
};
|
|
|
|
window.settings_muting = exports;
|