Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 2011-04-21 David Simpson
- // For use with Atlassian's Confluence
- // Get the pagetree macro to expand child pages in the hierarchy by default
- //
- AJS.$('.plugin_pagetree span.plugin_pagetree_children_span[style="font-weight: bold;"]').each(function(){
- if ( AJS.$(this).text().trim() == AJS.$('#title-text').text().trim() ){
- AJS.$(this).parent().siblings('.plugin_pagetree_childtoggle_container').find('.icon-plus').click();
- }
- });
- // This has been a bugbear of mine for a little while.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement