fix(connection): add jQuery selector for closing offline banner (@AmanWebDev2) #6390
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes issue #6389, which addresses the problem where the "No internet connection" banner would not disappear even after the user reconnects to the internet. The fix adds a proper jQuery selector that correctly targets the offline banner element with the appropriate classes (psa.notice), ensuring it gets closed when connection is restored.
Additionally, this PR also fixes an issue where, after going offline, if the user manually cancels the offline banner and then reconnects, the 'You're back online' toast message would not appear. The fix ensures the toast message is correctly triggered when the connection is restored.
Checks
_list.json
,_groups.json
and addlanguages.json
?Closes #6389
RESULT -
Screen.Recording.2025-03-22.at.02.02.23.mov
Screen.Recording.2025-03-23.at.02.12.37.mp4