mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
more actions on jump to note dialog
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user