Skip to content

R1-324: ScholarshipsListingPage - Wire up Home / Overseas toggle switch JS#1148

Open
patrickcuagan wants to merge 3 commits intofeature/323-home-overseas-togglefrom
feature/324-wire-home-overseas-toggle
Open

R1-324: ScholarshipsListingPage - Wire up Home / Overseas toggle switch JS#1148
patrickcuagan wants to merge 3 commits intofeature/323-home-overseas-togglefrom
feature/324-wire-home-overseas-toggle

Conversation

@patrickcuagan
Copy link
Copy Markdown
Collaborator

Ticket: https://torchbox.atlassian.net/browse/R1-324

This PR hooks up the home/overseas toggle switch to actually filter scholarships.

Screenshot 2026-04-08 at 1 26 43 PM Screenshot 2026-04-08 at 1 26 47 PM

@@ -1,4 +1,4 @@
<a class="reset{% if modifier %} reset--{{ modifier }}{% endif %}" href="{{ value.href|default:request.path }}" data-filters-reset>
<a class="reset{% if modifier %} reset--{{ modifier }}{% endif %}" href="{{ value.href|default:request.path }}{% if scholarships %}#results{% endif %}" data-filters-reset>
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so users are automatically scrolled to the scholarships when pressing clear search there.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice touch

this.closeProjectFilters();
if (this.body.classList.contains('project-filters')) {
this.closeProjectFilters();
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so a rogue black bar doesn't appear for a split second when clicking the clear filters link.

@@ -1,4 +1,4 @@
<a class="reset{% if modifier %} reset--{{ modifier }}{% endif %}" href="{{ value.href|default:request.path }}" data-filters-reset>
<a class="reset{% if modifier %} reset--{{ modifier }}{% endif %}" href="{{ value.href|default:request.path }}{% if scholarships %}#results{% endif %}" data-filters-reset>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice touch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants