diff --git a/src/public/app/widgets/buttons/global_menu.js b/src/public/app/widgets/buttons/global_menu.js index 09d09a322..6de93ba66 100644 --- a/src/public/app/widgets/buttons/global_menu.js +++ b/src/public/app/widgets/buttons/global_menu.js @@ -68,52 +68,22 @@ const TPL = ` - + + `; diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index d341f6211..425fd9dde 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -799,6 +799,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { await node.setExpanded(isExpanded, {noEvents: true, noAnimation: true}); } }); + + const activeNode = await this.getNodeFromPath(appContext.tabManager.getActiveContextNotePath()); + + if (activeNode) { + activeNode.setActive({noEvents: true, noFocus: false}); + } } async expandTree(node = null) { diff --git a/src/public/app/widgets/type_widgets/doc.js b/src/public/app/widgets/type_widgets/doc.js index a7a692b13..b5b6c8196 100644 --- a/src/public/app/widgets/type_widgets/doc.js +++ b/src/public/app/widgets/type_widgets/doc.js @@ -24,7 +24,7 @@ export default class DocTypeWidget extends TypeWidget { const docName = note.getLabelValue('docName'); if (docName) { - this.$content.load(`app/doc_notes/${docName}.html`); + this.$content.load(`${window.glob.assetPath}/app/doc_notes/${docName}.html`); } else { this.$content.empty(); }