mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +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>
		
			
				
	
	
		
			19 lines
		
	
	
		
			483 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			483 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
exports.initialize = function () {
 | 
						|
    if (!page_params.search_pills_enabled) {
 | 
						|
        return;
 | 
						|
    }
 | 
						|
    const container = $("#search_arrows");
 | 
						|
    exports.widget = search_pill.create_pills(container);
 | 
						|
 | 
						|
    exports.widget.onPillRemove(() => {
 | 
						|
        if (exports.widget.items().length === 0) {
 | 
						|
            ui_util.change_tab_to("#home");
 | 
						|
            narrow.deactivate();
 | 
						|
        }
 | 
						|
    });
 | 
						|
 | 
						|
    exports.widget.createPillonPaste(() => false);
 | 
						|
};
 | 
						|
 | 
						|
window.search_pill_widget = exports;
 |