added cloning to the "add link" dialog

This commit is contained in:
azivner
2017-12-21 21:54:25 -05:00
parent 57c4465a37
commit 84faa41321
5 changed files with 78 additions and 15 deletions

View File

@@ -38,8 +38,10 @@ const treeChanges = (function() {
});
}
async function cloneNoteTo(childNoteId, parentNoteId) {
const resp = await server.put('notes/' + childNoteId + '/clone-to/' + parentNoteId);
async function cloneNoteTo(childNoteId, parentNoteId, prefix) {
const resp = await server.put('notes/' + childNoteId + '/clone-to/' + parentNoteId, {
prefix: prefix
});
if (!resp.success) {
alert(resp.message);