mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	pills: Use widget instead of my_pill throughout the app.
				
					
				
			`compose_pm_pill.my_pill`, `search_pill_widget.my_pill` and any of its occurrences throughout the app have been replaced to use `widget` instead.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							1f553a41d0
						
					
				
				
					commit
					22b2393cae
				
			@@ -7,10 +7,10 @@ exports.initialize = function () {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    var container = $('#search_arrows');
 | 
			
		||||
    exports.my_pill = search_pill.create_pills(container);
 | 
			
		||||
    exports.widget = search_pill.create_pills(container);
 | 
			
		||||
 | 
			
		||||
    exports.my_pill.onPillRemove(function () {
 | 
			
		||||
        var base_query = search_pill.get_search_string_for_current_filter(exports.my_pill);
 | 
			
		||||
    exports.widget.onPillRemove(function () {
 | 
			
		||||
        var base_query = search_pill.get_search_string_for_current_filter(exports.widget);
 | 
			
		||||
        var operators = Filter.parse(base_query);
 | 
			
		||||
        narrow.activate(operators, {trigger: 'search'});
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user