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:
azivner
2017-08-15 21:29:12 -04:00
parent 3c924afbca
commit b986e93356
3 changed files with 19 additions and 4 deletions

View File

@@ -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",