more actions on jump to note dialog

This commit is contained in:
azivner
2017-11-19 22:31:30 -05:00
parent c8aaf6085d
commit d98a5b6299
4 changed files with 62 additions and 24 deletions

View File

@@ -48,11 +48,11 @@ const addLink = (function() {
}
formEl.submit(() => {
let val = autoCompleteEl.val();
const value = autoCompleteEl.val();
const noteId = link.getNodePathFromLabel(val);
const notePath = link.getNodePathFromLabel(value);
if (noteId) {
if (notePath) {
const linkTitle = linkTitleEl.val();
dialogEl.dialog("close");
@@ -61,7 +61,7 @@ const addLink = (function() {
noteDetailEl.summernote('createLink', {
text: linkTitle,
url: 'app#' + noteId,
url: 'app#' + notePath,
isNewWindow: true
});
}