mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 15:49:56 +01:00
tree utils as a module
This commit is contained in:
@@ -25,7 +25,7 @@ const link = (function() {
|
||||
function createNoteLink(noteId) {
|
||||
const noteLink = $("<a>", {
|
||||
href: 'javascript:',
|
||||
text: getFullName(noteId)
|
||||
text: treeUtils.getFullName(noteId)
|
||||
}).attr('action', 'note')
|
||||
.attr('note-id', noteId);
|
||||
|
||||
@@ -41,7 +41,7 @@ const link = (function() {
|
||||
}
|
||||
|
||||
if (noteId) {
|
||||
getNodeByKey(noteId).setActive();
|
||||
treeUtils.activateNode(noteId);
|
||||
|
||||
// this is quite ugly hack, but it seems like we can't close the tooltip otherwise
|
||||
$("[role='tooltip']").remove();
|
||||
|
||||
Reference in New Issue
Block a user