Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent loading of listings when first page of results come preloaded #1783

Merged
merged 2 commits into from
Jun 6, 2019

Conversation

jom
Copy link
Member

@jom jom commented Jun 6, 2019

Changes proposed in this Pull Request:

  • In version 1.32.3, ajax-filters.js didn't load listings on page load if there were no job filters ([jobs show_filters=false] pre-populates the first page of results. This restores that functionality.

Testing instructions:

  • On Jobify, view a taxonomy archive page. They generate a listing of results inside of a <div class="job_listings">...</div> and mock the look of [jobs]. This will keep ajax-filters.js from loading with an empty query.
  • Create a page with [jobs show_filters="false"] and verify it loads jobs correctly on multiple pages and maintains state (if you have two pages loaded, click on a listing in result, and click browser's back button, 2 pages should be loaded right away).

@jom jom added this to the 1.33.1 milestone Jun 6, 2019
@jom jom requested review from roundhill and alexsanford June 6, 2019 15:46
@jom jom self-assigned this Jun 6, 2019
@jom jom force-pushed the fix/prevent-jobs-load-headless branch from e9e6588 to 7404d6c Compare June 6, 2019 15:49
@jom
Copy link
Member Author

jom commented Jun 6, 2019

Copy link
Contributor

@roundhill roundhill left a comment

Choose a reason for hiding this comment

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

Works as advertised :shipit:

@jom jom merged commit 0112677 into version/1.33 Jun 6, 2019
@jom jom deleted the fix/prevent-jobs-load-headless branch June 6, 2019 19:59
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