mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	refactoring of legacy js events
This commit is contained in:
		| @@ -19,7 +19,7 @@ export async function showDialog() { | ||||
|  | ||||
|     $dialog.modal(); | ||||
|  | ||||
|     $autoComplete.val('').focus(); | ||||
|     $autoComplete.val('').trigger('focus'); | ||||
|     $linkTitle.val(''); | ||||
|  | ||||
|     async function setDefaultLinkTitle(noteId) { | ||||
| @@ -51,7 +51,7 @@ export async function showDialog() { | ||||
|     noteAutocompleteService.showRecentNotes($autoComplete); | ||||
| } | ||||
|  | ||||
| $form.submit(() => { | ||||
| $form.on('submit', () => { | ||||
|     const notePath = $autoComplete.getSelectedPath(); | ||||
|  | ||||
|     if (notePath) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user