mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
autocomplete for add link dialog, #203
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user