handling of cloned notes moved to backend which should fix some annoying behaviors

This commit is contained in:
azivner
2017-08-23 21:43:02 -04:00
parent 36e5259527
commit 9d260e9f5c
4 changed files with 18 additions and 10 deletions

View File

@@ -135,9 +135,8 @@ $(function(){
source: notes,
activate: function(event, data){
const node = data.node.data;
const noteId = node.is_clone ? node.note_clone_id : node.note_id;
saveNoteIfChanged(() => loadNote(noteId));
saveNoteIfChanged(() => loadNote(node.note_id));
},
expand: function(event, data) {
setExpanded(data.node.key, true);