Changeset - 37c9f0f2820f
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 6 months ago 2023-11-23 03:41:27
ben@sturm.com.au
Remove nesting of hidden sections on sustainer page

This makes the page more similar to how it has worked in previous years.
2 files changed with 1 insertions and 12 deletions:
0 comments (0 inline, 0 general)
conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -165,13 +165,2 @@ $(document).ready(function() {
 
            $ourexpandablesection.find('.read-more').each(function(index) { $(this).click(); });
 
            // Don't laugh. I'm running this twice because the expandable
 
            // sections are hidden by actually their text from the DOM and
 
            // storing it in a closure, to be reinstated later. That means when
 
            // the above ".find('.read-more')" runs it only finds the one
 
            // top-level .read-more element because the children have been
 
            // temporarily removed from the page. After this top-level element
 
            // has been clicked to restore it's body, we can run this again and
 
            // .find() the children elements. I suspect this may have worked in
 
            // the past if there were multiple sections all at the top-level,
 
            // rather than being nested under "Our Year in Review".
 
            $ourexpandablesection.find('.read-more').each(function(index) { $(this).click(); });
 
        });
conservancy/templates/supporter/index.html
Show inline comments
...
 
@@ -133,2 +133,3 @@ account will be approved.</p>
 
</div>
 
</div>
 

	
...
 
@@ -286,3 +287,2 @@ reach for reproducibility. </p>
 
</div>
 
</div>
 

	
0 comments (0 inline, 0 general)