Skip to content

Commit

Permalink
Merge pull request #40053 from gsmet/fix-show-more-show-less
Browse files Browse the repository at this point in the history
Fix collapsing in config reference
  • Loading branch information
gsmet authored Apr 15, 2024
2 parents 5871b82 + 75ad6a5 commit ed82c3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/main/asciidoc/javascript/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,15 @@ function makeCollapsibleHandler(descDiv, td, row,
if( isCollapsed ) {
collapsibleSpan.childNodes.item(0).nodeValue = 'Show less';
iconDecoration.classList.replace('fa-chevron-down', 'fa-chevron-up');
descDiv.classList.remove('description-collapsed');
descDiv.classList.add('description-expanded');
}
else {
collapsibleSpan.childNodes.item(0).nodeValue = 'Show more';
iconDecoration.classList.replace('fa-chevron-up', 'fa-chevron-down');
descDiv.classList.add('description-collapsed');
descDiv.classList.remove('description-expanded');
}
descDiv.classList.toggle('description-collapsed');
descDiv.classList.toggle('description-expanded');
row.classList.toggle('row-collapsed');
};
}
Expand Down

0 comments on commit ed82c3f

Please sign in to comment.