Changeset - c2d41ca6fda0
[Not reviewed]
0 1 0
Bradley M. Kuhn - 3 years ago 2020-11-26 03:42:57
bkuhn@sfconservancy.org
Remove active class addition; don't remove data attr, only expand a
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -131,12 +131,10 @@ $(document).ready(function() {
 
    $('a[data-expand-link-text]').each(function(index, element) {
 
        var $element = $(element);
 
        $element.append($element.data('expand-link-text'));
 
        $element.removeAttr('data-expand-link-text');
 
    });
 
    $('.expandable-section').each(function(index) {
 
        var $expandlink = $(this).children('.expander');
 
        var $expandlink = $(this).children('a.expander');
 
        var $ourexpandablesection = $(this);
 
        $expandlink.addClass('active').trigger('click');
 
        $expandlink.on('click', function(event) {
 
            $expandlink.fadeOut('slow');
 
            $ourexpandablesection.find('.read-more').each(function(index) { $(this).click(); }); });
0 comments (0 inline, 0 general)