mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
handling of cloned notes moved to backend which should fix some annoying behaviors
This commit is contained in:
@@ -42,14 +42,12 @@ function saveNoteIfChanged(callback) {
|
||||
|
||||
note.detail.note_title = title;
|
||||
|
||||
const note_id = note.detail.is_clone ? note.detail.note_clone_id : note.detail.note_id;
|
||||
|
||||
$.ajax({
|
||||
url: baseUrl + 'notes/' + note_id,
|
||||
url: baseUrl + 'notes/' + note.detail.note_id,
|
||||
type: 'PUT',
|
||||
data: JSON.stringify(note),
|
||||
contentType: "application/json",
|
||||
success: function(result) {
|
||||
success: function() {
|
||||
isNoteChanged = false;
|
||||
|
||||
message("Saved!");
|
||||
@@ -58,7 +56,7 @@ function saveNoteIfChanged(callback) {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
error: function(result) {
|
||||
error: function() {
|
||||
error("Error saving the note!");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user