Commits

Shlomi Fish committed d19cfa4

Auto-expand the About Myself and Meta nodes.

Comments (0)

Files changed (1)

common/js/to-jqtree-2.js

             to: '_data/nav.json',
         }),
         function(json_input) {
-            $('#nav_menu').tree({
+            var nav_menu = $('#nav_menu');
+            nav_menu.tree({
                 autoEscape: false,
                 autoOpen: false,
                 saveState: true,
                     }
                 )
             });
+            var about_myself_node_id = "2";
+            var meta_node_id = "311";
+            [about_myself_node_id, meta_node_id].forEach(function (node_id) {
+                var node = nav_menu.tree('getNodeById', node_id);
+                nav_menu.tree('openNode', node, false);
+            });
         }
     );
 }