mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
after creating new note, unselect previous active, fixes #45
This commit is contained in:
parent
5bce9a5f94
commit
ebe66eaed9
@ -805,6 +805,8 @@ const noteTree = (function() {
|
|||||||
throwError("Unrecognized target: " + target);
|
throwError("Unrecognized target: " + target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearSelectedNodes(); // to unmark previously active node
|
||||||
|
|
||||||
showMessage("Created!");
|
showMessage("Created!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,10 +61,8 @@ router.put('/:noteTreeId/move-before/:beforeNoteTreeId', auth.checkApiAuth, wrap
|
|||||||
|
|
||||||
await sync_table.addNoteReorderingSync(beforeNote.parentNoteId, sourceId);
|
await sync_table.addNoteReorderingSync(beforeNote.parentNoteId, sourceId);
|
||||||
|
|
||||||
const now = utils.nowDate();
|
|
||||||
|
|
||||||
await sql.execute("UPDATE note_tree SET parentNoteId = ?, notePosition = ?, dateModified = ? WHERE noteTreeId = ?",
|
await sql.execute("UPDATE note_tree SET parentNoteId = ?, notePosition = ?, dateModified = ? WHERE noteTreeId = ?",
|
||||||
[beforeNote.parentNoteId, beforeNote.notePosition, now, noteTreeId]);
|
[beforeNote.parentNoteId, beforeNote.notePosition, utils.nowDate(), noteTreeId]);
|
||||||
|
|
||||||
await sync_table.addNoteTreeSync(noteTreeId, sourceId);
|
await sync_table.addNoteTreeSync(noteTreeId, sourceId);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user