Skip to content

Conversation

@Bubballoo3
Copy link
Contributor

Fixes #4692 by adding a listener for window pageshow event and then checking event.persisted to make sure the page is being pulled from the browser cache and not reloaded. This may be unnecessary (we may want to remove the spinners every time the sessions index is opened) but this solves the original issue of the browser back button breaking spinners. Because these changes were added to bindFullPageSpinnerEvent, this will also fix this behavior on all the other pages that use this functionality.

In doing this update, I did notice a second spinner div, #full_page_spinner (cf. #full-page-spinner used here) which is exclusively used by sweet alert, and IIRC we have a ticket to refactor. In the mean time, I added some comments and grouped the different sets of spinner functions together to reduce confusion.

Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

LGTM.

@Bubballoo3 Bubballoo3 merged commit 3d614a2 into master Nov 4, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Review to Merged/Closed in PR Review Pipeline Nov 4, 2025
@Bubballoo3 Bubballoo3 deleted the clean-up-spinners-4692 branch November 4, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged/Closed

Development

Successfully merging this pull request may close these issues.

'Spinning wheel' if browser back button is pressed when editing existing job card

4 participants