2017-04-06 16:56:52 +02:00
|
|
|
exports.set_up = function () {
|
|
|
|
$('body').on('click', '.settings-unmute-topic', function (e) {
|
2019-11-02 00:06:25 +01:00
|
|
|
const $row = $(this).closest("tr");
|
2020-01-16 20:40:40 +01:00
|
|
|
const stream_id = parseInt($row.attr("data-stream-id"), 10);
|
2019-11-02 00:06:25 +01:00
|
|
|
const topic = $row.attr("data-topic");
|
2017-04-06 16:56:52 +02:00
|
|
|
|
|
|
|
e.stopImmediatePropagation();
|
2018-12-14 17:20:35 +01:00
|
|
|
|
|
|
|
muting_ui.unmute(stream_id, topic);
|
|
|
|
$row.remove();
|
2017-04-06 16:56:52 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
muting_ui.set_up_muted_topics_ui(muting.get_muted_topics());
|
|
|
|
};
|
|
|
|
|
2019-10-25 09:45:13 +02:00
|
|
|
window.settings_muting = exports;
|