Skip to content
Snippets Groups Projects
Commit 25d8d66b authored by felmer's avatar felmer
Browse files

SSDM-4222: Expand side menu trees at start.

SVN: 37241
parent 1924ec09
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) {
treeModelUtils.push({ title : "Trashcan", entityType: "TRASHCAN", key : "TRASHCAN", folder : false, lazy : false, view : "showTrashcanPage", icon : "glyphicon glyphicon-trash" });
}
treeModel.push({ title : "Utilities", entityType: "UTILITIES", key : "UTILITIES", folder : true, lazy : false, children : treeModelUtils, icon : "glyphicon glyphicon-wrench" });
treeModel.push({ title : "Utilities", entityType: "UTILITIES", key : "UTILITIES", folder : true, lazy : false, expanded : true, children : treeModelUtils, icon : "glyphicon glyphicon-wrench" });
treeModel.push({ title : "About", entityType: "ABOUT", key : "ABOUT", folder : false, lazy : false, view : "showAbout", icon : "glyphicon glyphicon-info-sign" });
var glyph_opts = {
......@@ -457,5 +457,17 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) {
this._sideMenuWidgetModel.menuDOMBody.append($tree);
this._sideMenuWidgetModel.tree = $tree;
$tree.fancytree("getTree").getNodeByKey("LAB_NOTEBOOK").setExpanded(true);
var inventoryNode = $tree.fancytree("getTree").getNodeByKey("INVENTORY");
inventoryNode.setExpanded(true).done(function(){
inventoryNode.visit(function(node){
node.setExpanded(true).done(function(){
node.visit(function(node2){
node2.setExpanded(true);
})
});
})
});
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment