adding notes to recent list only after some time period (currently 1500ms)

This commit is contained in:
azivner
2017-08-23 19:57:44 -04:00
parent 9d80f56d81
commit 8a928f05f3
2 changed files with 16 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ $(document).bind('keypress', 'alt+q', function() {
recentNotesSelectBox.find('option').remove();
// remove the current note
let recNotes = recentNotes.slice(1);
let recNotes = recentNotes.filter(note => note.noteId !== globalNote.detail.note_id);
$.each(recNotes, function(key, value) {
let option = $("<option></option>")