mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix visibility of hyper-link in repeatedly opened dialog
This commit is contained in:
		
							parent
							
								
									f54f6d09b0
								
							
						
					
					
						commit
						08edc521e4
					
				@ -17,7 +17,6 @@ export async function showDialog(widget) {
 | 
			
		||||
 | 
			
		||||
    $addLinkTitleSettings.toggle(!textTypeWidget.hasSelection());
 | 
			
		||||
 | 
			
		||||
    updateTitleFormGroupVisibility();
 | 
			
		||||
    $addLinkTitleSettings.find('input[type=radio]').on('change', updateTitleFormGroupVisibility);
 | 
			
		||||
 | 
			
		||||
    // with selection hyper link is implied
 | 
			
		||||
@ -28,6 +27,8 @@ export async function showDialog(widget) {
 | 
			
		||||
        $addLinkTitleSettings.find("input[value='reference-link']").prop("checked", true);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    updateTitleFormGroupVisibility();
 | 
			
		||||
 | 
			
		||||
    utils.openDialog($dialog);
 | 
			
		||||
 | 
			
		||||
    $autoComplete.val('').trigger('focus');
 | 
			
		||||
@ -89,4 +90,4 @@ $form.on('submit', () => {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return false;
 | 
			
		||||
});
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user