mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	basic lazy loading of tree now works, still WIP
This commit is contained in:
		@@ -285,14 +285,14 @@ async function treeInitialized() {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function initFancyTree(branch) {
 | 
			
		||||
    utils.assertArguments(branch);
 | 
			
		||||
function initFancyTree(tree) {
 | 
			
		||||
    utils.assertArguments(tree);
 | 
			
		||||
 | 
			
		||||
    $tree.fancytree({
 | 
			
		||||
        autoScroll: true,
 | 
			
		||||
        keyboard: false, // we takover keyboard handling in the hotkeys plugin
 | 
			
		||||
        extensions: ["hotkeys", "filter", "dnd", "clones"],
 | 
			
		||||
        source: branch,
 | 
			
		||||
        source: tree,
 | 
			
		||||
        scrollParent: $tree,
 | 
			
		||||
        click: (event, data) => {
 | 
			
		||||
            const targetType = data.targetType;
 | 
			
		||||
@@ -375,7 +375,7 @@ async function loadTree() {
 | 
			
		||||
        startNotePath = getNotePathFromAddress();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return await treeBuilder.prepareTree(resp.notes, resp.branches);
 | 
			
		||||
    return await treeBuilder.prepareTree(resp.notes, resp.branches, resp.parentToChildren);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function collapseTree(node = null) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user