Fix "expand all sections" second link

Issue was that the jQuery is using .children() to add the event handlers but due
to some changes to the HTML, the second link is no longer a direct child. I've
switched this to .find() instead.
This commit is contained in:
Ben Sturmfels 2023-11-22 10:38:37 +11:00
parent abcbe1f7c9
commit a557f2b335
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -158,7 +158,7 @@ $(document).ready(function() {
$element.append($element.data('expand-link-text'));
});
$('.expandable-section').each(function(index) {
var $expandlink = $(this).children('a.expander');
var $expandlink = $(this).find('a.expander');
var $ourexpandablesection = $(this);
$expandlink.on('click', function(event) {
$expandlink.fadeOut('slow');