{"action":"opened","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/957","labels_url":"https://api.github.com/repos/vakata/jstree/issues/957/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/957/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/957/events","html_url":"https://github.com/vakata/jstree/issues/957","id":54542885,"number":957,"title":"jstree on refresh collapses","user":{"login":"blpraveen","id":3274289,"avatar_url":"https://avatars.githubusercontent.com/u/3274289?v=3","gravatar_id":"","url":"https://api.github.com/users/blpraveen","html_url":"https://github.com/blpraveen","followers_url":"https://api.github.com/users/blpraveen/followers","following_url":"https://api.github.com/users/blpraveen/following{/other_user}","gists_url":"https://api.github.com/users/blpraveen/gists{/gist_id}","starred_url":"https://api.github.com/users/blpraveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blpraveen/subscriptions","organizations_url":"https://api.github.com/users/blpraveen/orgs","repos_url":"https://api.github.com/users/blpraveen/repos","events_url":"https://api.github.com/users/blpraveen/events{/privacy}","received_events_url":"https://api.github.com/users/blpraveen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T06:07:58Z","updated_at":"2015-01-16T06:07:58Z","closed_at":null,"body":"I am trying to fix the problem on sliverstripe cms. This issue does not occur on small number pages. it occurs whenthere is lot of pages and all the pages and subpages does not load initially.\r\nConsider a page having  5 depths and I am trying to open a page directly on depth 5. \r\nAll the parent pages are not loaded, initially, it checks depth 5 node exits if not exists it calls ajax to get the node. \r\nOn success it checks the ParentNode exits of not it call load_node. The problem is here it is not getting all the parents nodes \r\n\r\n      if(nodeData.ParentID && !self.find('li[data-id='+nodeData.ParentID+']').length) {\r\n        self.jstree('load_node', -1, function() {\r\n\t\tnewNode = self.find('li[data-id='+nodeId+']');\r\n\t\tcorrectStateFn(newNode);\r\n\t});\r\n\t} else {\r\n\t\tself.createNode(nodeData.html, nodeData, function(newNode) {\r\n\t\t\tcorrectStateFn(newNode);\r\n\t\t});\r\n\t}\r\n\r\n\r\nWhat does the  'load_node' does and what  values need to pass in the arguments to get all the parent nodes?\r\n\r\nPlease help\r\nThanks\r\nB L Praveen"}}