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