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

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