#129, added input icon to trigger recent notes for easy discovery and mouse control

This commit is contained in:
azivner
2018-07-27 09:22:25 +02:00
parent e4f459fa2b
commit 4d6eda8fe6
5 changed files with 34 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
import treeService from '../services/tree.js';
import linkService from '../services/link.js';
import server from '../services/server.js';
import searchNotesService from '../services/search_notes.js';
const $dialog = $("#jump-to-note-dialog");
const $autoComplete = $("#jump-to-note-autocomplete");
const $showInFullTextButton = $("#show-in-full-text-button");
const $showRecentNotesButton = $("#jump-to-note-show-recent-notes");
async function showDialog() {
glob.activeDialog = $dialog;
@@ -48,7 +48,7 @@ async function showDialog() {
}
});
$autoComplete.autocomplete("search", "");
showRecentNotes();
}
function showInFullText(e) {
@@ -65,8 +65,14 @@ function showInFullText(e) {
$dialog.dialog('close');
}
function showRecentNotes() {
$autoComplete.autocomplete("search", "");
}
$showInFullTextButton.click(showInFullText);
$showRecentNotesButton.click(showRecentNotes);
$dialog.bind('keydown', 'ctrl+return', showInFullText);
export default {