unified naming of IDs in all lower case

This commit is contained in:
azivner
2017-10-10 20:19:16 -04:00
parent fb28111288
commit af8b26cbd5
13 changed files with 136 additions and 186 deletions

View File

@@ -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;