encrypted notes are distinguished in the tree by shaded icons

This commit is contained in:
azivner 2017-09-08 23:14:42 -04:00
parent adf18132fb
commit 07af2de0f5
5 changed files with 15 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

View File

@ -122,11 +122,12 @@ function createNote(node, parentKey, target, encryption) {
}),
contentType: "application/json",
success: function(result) {
let newNode = {
const newNode = {
title: newNoteName,
key: result.note_id,
note_id: result.note_id,
encryption: encryption
encryption: encryption,
extraClasses: encryption ? "encrypted" : ""
};
globalAllNoteIds.push(result.note_id);

View File

@ -171,6 +171,8 @@ $(function(){
if (note.encryption > 0) {
note.title = "[encrypted]";
note.extraClasses = "encrypted";
}
else {
note.title = note.note_title;

View File

@ -48,6 +48,16 @@ span.fancytree-node.fancytree-folder > span.fancytree-icon {
background-image: url("icons/folder.png");
}
span.fancytree-node.encrypted > span.fancytree-icon {
background-position: 0 0;
background-image: url("icons/file-shaded.png");
}
span.fancytree-node.encrypted.fancytree-folder > span.fancytree-icon {
background-position: 0 0;
background-image: url("icons/folder-shaded.png");
}
.ui-autocomplete {
max-height: 300px;
overflow-y: auto;