added "jump to note" to header

This commit is contained in:
azivner
2017-10-10 20:37:45 -04:00
parent af8b26cbd5
commit a363b43c2b
3 changed files with 27 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
$(document).bind('keydown', 'alt+j', () => {
function showJumpToNote() {
$("#jump-to-note-autocomplete").val('');
$("#jump-to-note-dialog").dialog({
@@ -10,7 +10,9 @@ $(document).bind('keydown', 'alt+j', () => {
source: getAutocompleteItems(globalAllNoteIds),
minLength: 0
});
});
}
$(document).bind('keydown', 'alt+j', showJumpToNote);
$("#jump-to-note-form").submit(() => {
const val = $("#jump-to-note-autocomplete").val();