tree utils as a module

This commit is contained in:
azivner
2017-11-04 22:18:36 -04:00
parent 900f169dab
commit 30df3cba1c
10 changed files with 82 additions and 65 deletions

View File

@@ -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();