mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
unified naming of IDs in all lower case
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
$(document).bind('keydown', 'alt+j', () => {
|
||||
$("#jumpToNoteAutocomplete").val('');
|
||||
$("#jump-to-note-autocomplete").val('');
|
||||
|
||||
$("#jumpToNoteDialog").dialog({
|
||||
$("#jump-to-note-dialog").dialog({
|
||||
modal: true,
|
||||
width: 500
|
||||
});
|
||||
|
||||
$("#jumpToNoteAutocomplete").autocomplete({
|
||||
$("#jump-to-note-autocomplete").autocomplete({
|
||||
source: getAutocompleteItems(globalAllNoteIds),
|
||||
minLength: 0
|
||||
});
|
||||
});
|
||||
|
||||
$("#jumpToNoteForm").submit(() => {
|
||||
const val = $("#jumpToNoteAutocomplete").val();
|
||||
$("#jump-to-note-form").submit(() => {
|
||||
const val = $("#jump-to-note-autocomplete").val();
|
||||
const noteId = getNodeIdFromLabel(val);
|
||||
|
||||
if (noteId) {
|
||||
getNodeByKey(noteId).setActive();
|
||||
|
||||
$("#jumpToNoteDialog").dialog('close');
|
||||
$("#jump-to-note-dialog").dialog('close');
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user