Merge branch 'stable'

# Conflicts:
#	package.json
This commit is contained in:
zadam
2019-07-30 22:11:20 +02:00
3 changed files with 36 additions and 31 deletions

View File

@@ -75,6 +75,16 @@ async function showTree() {
},
clones: {
highlightActiveClones: true
},
// this is done to automatically lazy load all expanded search notes after tree load
loadChildren: (event, data) => {
data.node.visit((subNode) => {
// Load all lazy/unloaded child nodes
// (which will trigger `loadChildren` recursively)
if (subNode.isUndefined() && subNode.isExpanded()) {
subNode.load();
}
});
}
});
}

View File

@@ -484,11 +484,11 @@ function initFancyTree(tree) {
}
},
// this is done to automatically lazy load all expanded search notes after tree load
loadChildren: function(event, data) {
data.node.visit(function(subNode){
loadChildren: (event, data) => {
data.node.visit((subNode) => {
// Load all lazy/unloaded child nodes
// (which will trigger `loadChildren` recursively)
if( subNode.isUndefined() && subNode.isExpanded() ) {
if (subNode.isUndefined() && subNode.isExpanded()) {
subNode.load();
}
});