Advertisement
Guest User

Untitled

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