Skip to content

Build your personal knowledge base with Trilium Notes

fix fancytree navigation bug before official release, use unminified build in the meantime

zadamad46ba7d0f9e
diff --git a/libraries/fancytree/jquery.fancytree-all-deps.js b/libraries/fancytree/jquery.fancytree-all-deps.js
index d2bcec78e7..d4c8370fed 100644
--- a/libraries/fancytree/jquery.fancytree-all-deps.js
+++ b/libraries/fancytree/jquery.fancytree-all-deps.js
@@ -3235,7 +3235,8 @@ var uniqueId = $.fn.extend( {
node.makeVisible({ scrollIntoView: false });
} catch (e) {} // #272
if (activate === false) {
- return node.setFocus();
+ node.setFocus();
+ return _getResolvedPromise();
}
return node.setActive();
}
diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs
index fa172a5ac3..1dedf66fcb 100644
--- a/src/views/desktop.ejs
+++ b/src/views/desktop.ejs
@@ -200,7 +200,7 @@
<!-- Include Fancytree skin and library -->
<link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet">
-<script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script>
+<script src="libraries/fancytree/jquery.fancytree-all-deps.js"></script>
<script src="libraries/jquery.hotkeys.js"></script>
<script src="libraries/jquery.fancytree.hotkeys.js"></script>