From 7c623d9a0ba984072090e60056d2a7a5d2fb53bd Mon Sep 17 00:00:00 2001 From: azivner Date: Fri, 8 Sep 2017 23:41:29 -0400 Subject: [PATCH] toggling encrypted/decrypted switches tree node status as well --- static/js/note.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/note.js b/static/js/note.js index 2b126c392..b9da973d6 100644 --- a/static/js/note.js +++ b/static/js/note.js @@ -162,6 +162,9 @@ function setNoteBackgroundIfEncrypted(note) { $("#encryptButton").show(); $("#decryptButton").hide(); } + + const node = getNodeByKey(note.detail.note_id); + node.toggleClass("encrypted", note.detail.encryption > 0); } function loadNote(noteId) {