silverstripe/sapphire — pull request #727 by phptek (2012-08-19 23:17:33+00:00)
Title: Trac 7761

From Trac 7761 "Children disappearing after parent page's title is edited".

Child-nodes were disappearing from view for 2 reasons AFAIKT:

1). self.jstree('correct_state', newNode) removes child

elements. Changed to use self.jstree('refresh', node); in order to remove toggle arrow _only_
2). updateNodesFromServer() takes an array of node IDs to pass back to the server to update the tree with. As far as I can tell, only 1 node (the parent) was being passed. Fixed this to pass (unique) child node-ids to the server too.