nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / static / examples / load_on_demand.js
1 $.mockjax({
2     url: '*',
3     responseTime: 1000,
4     response: function(options) {
5         if (options.data && options.data.node) {
6             this.responseText = ExampleData.getChildrenOfNode(options.data.node);
7         }
8         else {
9             this.responseText = ExampleData.getFirstLevelData();
10         }
11     }
12 });
13
14 $(function() {
15     var $tree = $('#tree1');
16
17     $tree.tree({
18         saveState: true
19     });
20 });