You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
In almost every view in my app user may edit some content and then click "save" to sync edited data to server. If user edits some data, does not save them and redirects to another page/view/controller via HTML link or Chaplin.utils.redirectTo method, then I would like to show a modal thats says something like "Hey you didn't save your data - are you sure you want to leave this page?".
Where and how I can catch "redirect" event and prevent it when neccessery?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In almost every view in my app user may edit some content and then click "save" to sync edited data to server. If user edits some data, does not save them and redirects to another page/view/controller via HTML link or
Chaplin.utils.redirectTo
method, then I would like to show a modal thats says something like "Hey you didn't save your data - are you sure you want to leave this page?".Where and how I can catch "redirect" event and prevent it when neccessery?
The text was updated successfully, but these errors were encountered: