mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	settings_components: Convert .data("setting-widget-type") to .attr.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							abee323c77
						
					
				
				
					commit
					64c8262eaf
				
			@@ -658,7 +658,9 @@ function get_input_type($input_elem: JQuery, input_type?: string): string {
 | 
			
		||||
    if (input_type !== undefined && ["boolean", "string", "number"].includes(input_type)) {
 | 
			
		||||
        return input_type;
 | 
			
		||||
    }
 | 
			
		||||
    return $input_elem.data("setting-widget-type");
 | 
			
		||||
    input_type = $input_elem.attr("data-setting-widget-type");
 | 
			
		||||
    assert(input_type !== undefined);
 | 
			
		||||
    return input_type;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function get_input_element_value(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user