Changeset - a557f2b3357c
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 5 months ago 2023-11-21 23:38:37
ben@sturm.com.au
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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -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');
0 comments (0 inline, 0 general)