mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Hide note selector when the user clicks elsewhere
This commit is contained in:
		@@ -213,6 +213,13 @@ function autoCompleteNote (field_id, note_list_id, notes, notes_display, alias_p
 | 
			
		||||
        fallbackPlacement: 'clockwise'
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    // When the user clicks elsewhere, we hide the tooltip
 | 
			
		||||
    $(document).click(function(e) {
 | 
			
		||||
        if (!e.target.id.startsWith(alias_prefix)) {
 | 
			
		||||
            field.tooltip("hide");
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    let old_pattern = null;
 | 
			
		||||
 | 
			
		||||
    // Clear search on click
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user