mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
more fine grained handling of conflicts without having to reload whole page most of the time
This commit is contained in:
@@ -113,6 +113,7 @@ function saveNoteToServer(note, callback) {
|
||||
}
|
||||
|
||||
let globalCurrentNote;
|
||||
let globalCurrentNoteLoadTime;
|
||||
|
||||
function createNewTopLevelNote() {
|
||||
let rootNode = globalTree.fancytree("getRootNode");
|
||||
@@ -193,6 +194,7 @@ function setNoteBackgroundIfEncrypted(note) {
|
||||
function loadNoteToEditor(noteId) {
|
||||
$.get(baseApiUrl + 'notes/' + noteId).then(note => {
|
||||
globalCurrentNote = note;
|
||||
globalCurrentNoteLoadTime = Math.floor(new Date().getTime() / 1000);
|
||||
|
||||
if (newNoteCreated) {
|
||||
newNoteCreated = false;
|
||||
|
||||
Reference in New Issue
Block a user