mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	reset radio to "html" type link when displaying dialog again
This commit is contained in:
		| @@ -12,7 +12,9 @@ const addLink = (function() { | ||||
|     function showDialog() { | ||||
|         glob.activeDialog = dialogEl; | ||||
|  | ||||
|         $('input:radio[name="add-link-type"]').filter('[value="html"]').attr('checked', true); | ||||
|         $('input[name="add-link-type"]').each(function () { | ||||
|             $(this).prop('checked', $(this).val() === "html"); | ||||
|         }); | ||||
|  | ||||
|         linkTitleEl.val(''); | ||||
|         clonePrefixEl.val(''); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user