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