diff --git a/public/javascripts/dialogs/jump_to_note.js b/public/javascripts/dialogs/jump_to_note.js index cd0f6c2a2..e8695bfd3 100644 --- a/public/javascripts/dialogs/jump_to_note.js +++ b/public/javascripts/dialogs/jump_to_note.js @@ -50,33 +50,7 @@ const jumpToNote = (function() { formEl.submit(() => { const action = dialogEl.find("button:focus").val(); - if (!action || action === 'jump') { - goToNote(); - } - else if (action === 'add-link') { - const notePath = getSelectedNotePath(); - - if (notePath) { - dialogEl.dialog("close"); - - const noteId = treeUtils.getNoteIdFromNotePath(notePath); - - link.addLinkToEditor(noteTree.getNoteTitle(noteId), '#' + notePath); - } - } - else if (action === 'add-current-as-child') { - treeChanges.cloneNoteTo(noteEditor.getCurrentNoteId(), getSelectedNoteId()); - - dialogEl.dialog("close"); - } - else if (action === 'add-selected-as-child') { - treeChanges.cloneNoteTo(getSelectedNoteId(), noteEditor.getCurrentNoteId()); - - dialogEl.dialog("close"); - } - else { - messaging.logError("Unknown action=" + action); - } + goToNote(); return false; }); diff --git a/views/index.ejs b/views/index.ejs index 6a4a47b04..7174f77dd 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -157,17 +157,11 @@