2017-04-06 16:56:52 +02:00
|
|
|
var settings_muting = (function () {
|
|
|
|
|
|
|
|
var exports = {};
|
|
|
|
|
|
|
|
exports.set_up = function () {
|
|
|
|
$('body').on('click', '.settings-unmute-topic', function (e) {
|
|
|
|
var $row = $(this).closest("tr");
|
2018-12-14 17:52:01 +01:00
|
|
|
var stream_id = $row.attr("data-stream-id");
|
|
|
|
var 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());
|
|
|
|
};
|
|
|
|
|
|
|
|
return exports;
|
|
|
|
}());
|
|
|
|
|
|
|
|
if (typeof module !== 'undefined') {
|
|
|
|
module.exports = settings_muting;
|
|
|
|
}
|
2018-05-28 08:04:36 +02:00
|
|
|
window.settings_muting = settings_muting;
|