mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	This commit was originally automatically generated using `tools/lint --only=eslint --fix`. It was then modified by tabbott to contain only changes to a set of files that are unlikely to result in significant merge conflicts with any open pull request, excluding about 20 files. His plan is to merge the remaining changes with more precise care, potentially involving merging parts of conflicting pull requests before running the `eslint --fix` operation. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			501 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			501 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(function () {
 | |
|         const base_query = search_pill.get_search_string_for_current_filter(exports.widget);
 | |
|         const operators = Filter.parse(base_query);
 | |
|         narrow.activate(operators, {trigger: 'search'});
 | |
|     });
 | |
| };
 | |
| 
 | |
| window.search_pill_widget = exports;
 |