mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
support for cloned notes including updating clones. Creating clones is not supported. Renaming is handled a bit differently - all clones and original share the same name, while in Notecase desktop each clone has separate name.
This commit is contained in:
@@ -28,8 +28,10 @@ function noteChanged() {
|
||||
|
||||
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.detail.note_id,
|
||||
url: baseUrl + 'notes/' + note_id,
|
||||
type: 'PUT',
|
||||
data: JSON.stringify(note),
|
||||
contentType: "application/json",
|
||||
|
||||
Reference in New Issue
Block a user