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

Clear AJAX queue if new request is made. #168

Open
rogeredthat opened this issue Aug 12, 2017 · 2 comments
Open

Clear AJAX queue if new request is made. #168

rogeredthat opened this issue Aug 12, 2017 · 2 comments

Comments

@rogeredthat
Copy link
Member

Currently, if you alternnatively click on two menu items, you end up seeing the pages lternatively appear and disappear long after you're done clicking. To fix this:

  1. Stop the exisiting AJAX query if the requeted URL is different.
  2. Ensure it doesn't break the existing lack of duplicate requests on same URL.

We also have to ensure that the settimeout is properly cleared on success/failure.

@ryan-barrett
Copy link

Hi, can I work on this?

@aero31aero
Copy link
Member

Hey! Thanks for your interest in this, and sure!

The relevant function is: https://github.com/crux-bphc/fest-manager/blob/pearl/public/static/scripts/index.js#L41 which is called as manager.route("/somewhere"); in the codebase.

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

No branches or pull requests

3 participants