Difference between revisions of "Sandbox"
From Organic Design wiki
m (Replaced content with "test edit") |
(test selecing current page) |
||
| Line 1: | Line 1: | ||
| − | + | <html> | |
| + | <script> | ||
| + | |||
| + | var tree = $("#sidebartree").fancytree("getTree"), | ||
| + | var cNode = false; | ||
| + | var cPage = 'China'; //mw.config.get('wgTitle'); | ||
| + | |||
| + | tree.visit( function(node) { | ||
| + | if(node.title == cPage) { | ||
| + | node.makeVisible( {noAnimation: true, noEvents: true, scrollIntoView: false } ); | ||
| + | node.setActive( {noEvents: true} ); | ||
| + | return false; | ||
| + | } | ||
| + | }); | ||
| + | |||
| + | <script> | ||
| + | </html> | ||
Revision as of 22:38, 22 March 2015



