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

Adds a spinner for all UJS ajax calls #2960

Merged
merged 4 commits into from
Jul 15, 2021
Merged

Conversation

briri
Copy link
Contributor

@briri briri commented Jun 25, 2021

Fixes #1310 and also Part of #2930

  • Add a spinner gif
  • Add JS logic to display the spinner when a UJS Ajax call begins and then hide it once the request is complete.

Note that in some scenarios (e.g. editing a plan answer) we are not using UJS and are using JQuery's $.ajax call directly, so the spinner does not appear. We could update the JS here to allow it to be exported and then have the direct AJAX calls invoke toggleSpinner(); directly but I don't think its necessary since the longer running ones have visual cues like "Saving ..."

Copy link
Contributor

@raycarrick-ed raycarrick-ed left a comment

Choose a reason for hiding this comment

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

Looks good.

@raycarrick-ed raycarrick-ed merged commit 6e1d0d3 into development Jul 15, 2021
@briri briri deleted the add-spinner branch September 8, 2021 21:31
portagenetwork pushed a commit to portagenetwork/roadmap that referenced this pull request Feb 24, 2022
Adds a spinner for all UJS ajax calls
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