Changes for page Treeview

Last modified by Ludovic Dubost on 2023/04/25 09:12

From version 19.1
edited by Ludovic Dubost
on 2010/11/03 01:24
Change comment: There is no comment for this version
To version 20.1
edited by Ludovic Dubost
on 2010/11/03 01:26
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -71,6 +71,10 @@
71 71   parent2 = nodes[parent];
72 72   nodes[id] = new YAHOO.widget.TextNode(text, parent2, expanded);
73 73   nodes[id].href = url;
74 + if (expanded)
75 + nodes[i].expand()
76 + else
77 + nodes[i].collapse()
74 74   }
75 75  
76 76   function treeInit${tviewid}() {