mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			622 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			622 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
var settings_muting = (function () {
 | 
						|
 | 
						|
var exports = {};
 | 
						|
 | 
						|
exports.set_up = function () {
 | 
						|
    $('body').on('click', '.settings-unmute-topic', function (e) {
 | 
						|
        var $row = $(this).closest("tr");
 | 
						|
        var stream_id = $row.attr("data-stream-id");
 | 
						|
        var topic = $row.attr("data-topic");
 | 
						|
 | 
						|
        e.stopImmediatePropagation();
 | 
						|
 | 
						|
        muting_ui.unmute(stream_id, topic);
 | 
						|
        $row.remove();
 | 
						|
    });
 | 
						|
 | 
						|
    muting_ui.set_up_muted_topics_ui(muting.get_muted_topics());
 | 
						|
};
 | 
						|
 | 
						|
return exports;
 | 
						|
}());
 | 
						|
 | 
						|
if (typeof module !== 'undefined') {
 | 
						|
    module.exports = settings_muting;
 | 
						|
}
 | 
						|
window.settings_muting = settings_muting;
 |