Skip to content

Commit

Permalink
Fix collapsing in config reference
Browse files Browse the repository at this point in the history
I'm not sure when it got broken but the current toggling is not working
very well at least in some browsers.
Using good old add/remove was able to fix it so I didn't dig too much
either.
  • Loading branch information
gsmet committed Apr 12, 2024
1 parent b5d7429 commit 75ad6a5
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 75ad6a5

Please sign in to comment.