This commit is contained in:
azivner 2018-01-16 23:22:13 -05:00
parent 9c85303c94
commit b642a567bb

View file

@ -772,12 +772,22 @@ const noteTree = (function() {
if (target === 'after') {
node.appendSibling(newNode).setActive(true);
}
else {
node.addChildren(newNode).setActive(true);
else if (target === 'into') {
if (!node.getChildren() && node.isFolder()) {
await node.setExpanded();
}
else {
node.addChildren(newNode);
}
node.getLastChild().setActive(true);
node.folder = true;
node.renderTitle();
}
else {
throwError("Unrecognized target: " + target);
}
showMessage("Created!");
}