mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
better autosave - only once per 5 seconds with guaranteed save when changing notes
This commit is contained in:
@@ -39,7 +39,7 @@ $(function(){
|
||||
const node = data.node.data;
|
||||
const noteId = node.is_clone ? node.note_clone_id : node.note_id;
|
||||
|
||||
loadNote(noteId);
|
||||
saveNoteIfChanged(() => loadNote(noteId));
|
||||
},
|
||||
expand: function(event, data) {
|
||||
setExpanded(data.node.key, true);
|
||||
|
||||
Reference in New Issue
Block a user