autocomplete for add link dialog, #203

This commit is contained in:
azivner
2018-11-07 17:16:33 +01:00
parent a0f362457e
commit 90dbe637ed
6 changed files with 39 additions and 56 deletions

View File

@@ -5,7 +5,6 @@ import noteAutocompleteService from '../services/note_autocomplete.js';
const $dialog = $("#jump-to-note-dialog");
const $autoComplete = $("#jump-to-note-autocomplete");
const $showInFullTextButton = $("#show-in-full-text-button");
const $showRecentNotesButton = $dialog.find(".show-recent-notes-button");
$dialog.on("shown.bs.modal", e => $autoComplete.focus());
@@ -45,11 +44,8 @@ function showInFullText(e) {
}
$showInFullTextButton.click(showInFullText);
$showRecentNotesButton.click(noteAutocompleteService.showRecentNotes);
$dialog.bind('keydown', 'ctrl+return', showInFullText);
export default {