mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix
This commit is contained in:
parent
a92df38479
commit
9fcafe44d5
@ -68,12 +68,12 @@ const jumpToNote = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (action === 'add-current-as-child') {
|
else if (action === 'add-current-as-child') {
|
||||||
treeChanges.cloneNoteTo(noteTree.getCurrentNoteId(), getSelectedNoteId());
|
treeChanges.cloneNoteTo(noteEditor.getCurrentNoteId(), getSelectedNoteId());
|
||||||
|
|
||||||
dialogEl.dialog("close");
|
dialogEl.dialog("close");
|
||||||
}
|
}
|
||||||
else if (action === 'add-selected-as-child') {
|
else if (action === 'add-selected-as-child') {
|
||||||
treeChanges.cloneNoteTo(getSelectedNoteId(), noteTree.getCurrentNoteId());
|
treeChanges.cloneNoteTo(getSelectedNoteId(), noteEditor.getCurrentNoteId());
|
||||||
|
|
||||||
dialogEl.dialog("close");
|
dialogEl.dialog("close");
|
||||||
}
|
}
|
||||||
|
@ -109,13 +109,13 @@ const recentNotes = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function addCurrentAsChild() {
|
async function addCurrentAsChild() {
|
||||||
await treeChanges.cloneNoteTo(noteTree.getCurrentNoteId(), getSelectedNoteId());
|
await treeChanges.cloneNoteTo(noteEditor.getCurrentNoteId(), getSelectedNoteId());
|
||||||
|
|
||||||
dialogEl.dialog("close");
|
dialogEl.dialog("close");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function addRecentAsChild() {
|
async function addRecentAsChild() {
|
||||||
await treeChanges.cloneNoteTo(getSelectedNoteId(), noteTree.getCurrentNoteId());
|
await treeChanges.cloneNoteTo(getSelectedNoteId(), noteEditor.getCurrentNoteId());
|
||||||
|
|
||||||
dialogEl.dialog("close");
|
dialogEl.dialog("close");
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,6 @@ const noteEditor = (function() {
|
|||||||
return currentNote ? currentNote.detail.note_id : null;
|
return currentNote ? currentNote.detail.note_id : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentNoteLoadTime() {
|
|
||||||
return currentNote ? currentNote.loadTime : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function noteChanged() {
|
function noteChanged() {
|
||||||
if (noteChangeDisabled) {
|
if (noteChangeDisabled) {
|
||||||
return;
|
return;
|
||||||
@ -203,7 +199,6 @@ const noteEditor = (function() {
|
|||||||
loadNote,
|
loadNote,
|
||||||
getCurrentNote,
|
getCurrentNote,
|
||||||
getCurrentNoteId,
|
getCurrentNoteId,
|
||||||
getCurrentNoteLoadTime,
|
|
||||||
newNoteCreated
|
newNoteCreated
|
||||||
};
|
};
|
||||||
})();
|
})();
|
Loading…
x
Reference in New Issue
Block a user