fixing encrypt / decrypt subtree

This commit is contained in:
azivner
2017-11-22 20:46:42 -05:00
parent 705aff93ec
commit b96e434345
2 changed files with 5 additions and 6 deletions

View File

@@ -152,6 +152,8 @@ const protected_session = (function() {
}
async function protectSubTree(noteId, protect) {
await ensureProtectedSession(true, true);
await $.ajax({
url: baseApiUrl + 'tree/' + noteId + "/protectSubTree/" + (protect ? 1 : 0),
type: 'PUT',