fixed background of protected notes

This commit is contained in:
azivner
2017-12-16 21:27:42 -05:00
parent e206269457
commit 8eff18922c
3 changed files with 4 additions and 4 deletions

View File

@@ -80,12 +80,12 @@ const noteEditor = (function() {
function setNoteBackgroundIfProtected(note) {
if (note.detail.is_protected) {
$("#note-detail").addClass("protected");
$("#note-detail-wrapper").addClass("protected");
protectButton.hide();
unprotectButton.show();
}
else {
$("#note-detail").removeClass("protected");
$("#note-detail-wrapper").removeClass("protected");
protectButton.show();
unprotectButton.hide();
}