Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

A User Macro for Making Panels Collapsible

26 comments

Kmmaughs
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2022

I'm getting a TypeError: Cannot read properties. 

<a id="toggleAll" href="#">Expand/Collapse All sections</a> 
<script type="text/javascript">
AJS.$('.panel .collapsible_panel').each(function()
{
var panel = AJS.$(this).parent().parent();
AJS.$(panel).removeClass('collapsible_panel-open').addClass('collapsible_panel-closed');
AJS.$('.collapsible_panel-button', panel).removeClass('expanded');
AJS.$('.collapsible_panel-text', panel).text('Expand panel');
});
</script>

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events