From a557f2b3357c3ade56baf3890a0de4a53c5fbdb9 2023-11-21 23:38:37 From: Ben Sturmfels Date: 2023-11-21 23:38:37 Subject: [PATCH] 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. --- diff --git a/conservancy/static/js/supporter-page.js b/conservancy/static/js/supporter-page.js index 49da881af1f3a6b119a56bd9efc96138f6b68157..d0b8208d03e5ef603e307d6f5541f0c43a50a2fa 100644 --- a/conservancy/static/js/supporter-page.js +++ b/conservancy/static/js/supporter-page.js @@ -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');