mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
fixes in recent changes and handling encrypted notes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user