mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
support for note path
This commit is contained in:
@@ -18,9 +18,6 @@ const recentNotes = (function() {
|
||||
|
||||
function addRecentNote(noteTreeId) {
|
||||
setTimeout(() => {
|
||||
console.log("note tree: " + noteTreeId);
|
||||
console.log("current note tree: " + noteTree.getCurrentNoteTreeId());
|
||||
|
||||
// we include the note into recent list only if the user stayed on the note at least 5 seconds
|
||||
if (noteTreeId === noteTree.getCurrentNoteTreeId()) {
|
||||
$.ajax({
|
||||
@@ -86,7 +83,7 @@ const recentNotes = (function() {
|
||||
function setActiveNoteBasedOnRecentNotes() {
|
||||
const noteId = getSelectedNoteIdFromRecentNotes();
|
||||
|
||||
treeUtils.activateNode(noteId);
|
||||
noteTree.activateNode(noteId);
|
||||
|
||||
dialogEl.dialog('close');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user