recent notes can now both jump and add link

This commit is contained in:
azivner
2017-10-01 23:07:32 -04:00
parent 5d4c06a229
commit ade9da4a8a
5 changed files with 60 additions and 15 deletions

View File

@@ -11,16 +11,7 @@ $(document).bind('keydown', 'alt+l', function() {
});
function setDefaultLinkTitle(noteId) {
const note = getNodeByKey(noteId);
if (!note) {
return;
}
let noteTitle = note.title;
if (noteTitle.endsWith(" (clone)")) {
noteTitle = noteTitle.substr(0, noteTitle.length - 8);
}
const noteTitle = getNoteTitle(noteId);
$("#linkTitle").val(noteTitle);
}