fixes in recent changes and handling encrypted notes

This commit is contained in:
azivner
2017-11-04 11:32:05 -04:00
parent 44cfff09d9
commit ee07d2d2d8
3 changed files with 81 additions and 72 deletions

View File

@@ -20,21 +20,21 @@ function showRecentNotes() {
width: 800
});
let recentNotesSelectBox = $('#recent-notes-select-box');
const recentNotesSelectBox = $('#recent-notes-select-box');
recentNotesSelectBox.find('option').remove();
// remove the current note
let recNotes = glob.recentNotes.filter(note => note !== glob.currentNote.detail.note_id);
const recNotes = glob.recentNotes.filter(note => note !== glob.currentNote.detail.note_id);
$.each(recNotes, (key, valueNoteId) => {
let noteTitle = getFullName(valueNoteId);
const noteTitle = getFullName(valueNoteId);
if (!noteTitle) {
return;
}
let option = $("<option></option>")
const option = $("<option></option>")
.attr("value", valueNoteId)
.text(noteTitle);