mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	recent_topics: Directly pass jquery element instead of event object.
This commit is contained in:
		@@ -450,7 +450,7 @@ export function initialize() {
 | 
			
		||||
 | 
			
		||||
    $("body").on("click", "#recent_topics_search", (e) => {
 | 
			
		||||
        e.stopPropagation();
 | 
			
		||||
        recent_topics.change_focused_element(e, "click");
 | 
			
		||||
        recent_topics.change_focused_element($(e.target), "click");
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    $("body").on("click", "#recent_topics_table .on_hover_topic_read", (e) => {
 | 
			
		||||
@@ -465,7 +465,7 @@ export function initialize() {
 | 
			
		||||
 | 
			
		||||
    $("body").on("click", ".btn-recent-filters", (e) => {
 | 
			
		||||
        e.stopPropagation();
 | 
			
		||||
        recent_topics.change_focused_element(e, "click");
 | 
			
		||||
        recent_topics.change_focused_element($(e.target), "click");
 | 
			
		||||
        recent_topics.set_filter(e.currentTarget.dataset.filter);
 | 
			
		||||
        recent_topics.update_filters_view();
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user