server side encryption WIP

This commit is contained in:
azivner
2017-11-12 21:40:26 -05:00
parent ec49bf0cca
commit 50b789fc39
5 changed files with 12 additions and 84 deletions

View File

@@ -209,8 +209,6 @@ const noteEditor = (function() {
encryptionPasswordEl.val('');
encryption.decryptNoteIfNecessary(currentNote);
noteTitleEl.val(currentNote.detail.note_title);
noteChangeDisabled = true;
@@ -234,12 +232,6 @@ const noteEditor = (function() {
async function loadNote(noteId) {
const note = await $.get(baseApiUrl + 'notes/' + noteId);
if (note.detail.encryption > 0 && !encryption.isEncryptionAvailable()) {
return;
}
encryption.decryptNoteIfNecessary(note);
return note;
}