From a557f2b3357c3ade56baf3890a0de4a53c5fbdb9 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Wed, 22 Nov 2023 10:38:37 +1100 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. --- conservancy/static/js/supporter-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conservancy/static/js/supporter-page.js b/conservancy/static/js/supporter-page.js index 49da881a..d0b8208d 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');