refactoring of legacy js events

This commit is contained in:
zadam
2019-11-09 17:45:22 +01:00
parent 31bcc037f1
commit 3a1c80c189
22 changed files with 34 additions and 31 deletions

View File

@@ -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) {