mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-number-properties.md MDN says these were added to Number for modularization of globals. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt Signed-off-by: Anders Kaseorg <anders@zulip.com>
26 lines
588 B
JavaScript
26 lines
588 B
JavaScript
"use strict";
|
|
|
|
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 = Number.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;
|