mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
#126, relation list in note detail and fixes in saving
This commit is contained in:
@@ -79,7 +79,7 @@ async function showDialog() {
|
||||
return;
|
||||
}
|
||||
|
||||
const notePath = linkService.getNodePathFromLabel(ui.item.value);
|
||||
const notePath = linkService.getNotePathFromLabel(ui.item.value);
|
||||
|
||||
if (!notePath) {
|
||||
return;
|
||||
@@ -99,7 +99,7 @@ async function showDialog() {
|
||||
// this is called when user goes through autocomplete list with keyboard
|
||||
// at this point the item isn't selected yet so we use supplied ui.item to see WHERE the cursor is
|
||||
focus: async (event, ui) => {
|
||||
const notePath = linkService.getNodePathFromLabel(ui.item.value);
|
||||
const notePath = linkService.getNotePathFromLabel(ui.item.value);
|
||||
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
|
||||
|
||||
await setDefaultLinkTitle(noteId);
|
||||
@@ -114,7 +114,7 @@ async function showDialog() {
|
||||
$form.submit(() => {
|
||||
const value = $autoComplete.val();
|
||||
|
||||
const notePath = linkService.getNodePathFromLabel(value);
|
||||
const notePath = linkService.getNotePathFromLabel(value);
|
||||
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
|
||||
|
||||
if (notePath) {
|
||||
|
||||
Reference in New Issue
Block a user