cass-degrees / CASS-Degrees-Code

Primary Codebase for the TechLauncher CASS Degrees project
4 stars 1 forks source link

Implement check to verify that unsaved changes are acknowledged #459

Closed j-selby closed 5 years ago

j-selby commented 5 years ago

Closes #408

This PR implements a check to ensure that users aren't losing work when they navigate off a page after making changes to any field. This won't occur in scenarios where a user is submitting a form, but will based on browser navigation or clicking on links. Note that this will not work in all browsers - a few niche browsers intentionally block the ability to block page navigation.

This wasn't been implemented on the student facing side as that uses a different blob of js and would need further investigation.

In Firefox, for example:

change-page