Closed cfmitrah closed 6 years ago
@justincarter Reminder for review :)
The line on 321 refers to 'event', which doesn't exist, and the alert message isn't clear - it should be clearer e.g. "Are you sure you want to close without saving?"
Thanks CF Mitrah, sorry for not getting to these PRs earlier. As Blair mentioned this change won't work with the undefined event
object. We would also need some slightly more complex logic for detecting when a form has changes and not been saved, while still supporting some dialogs which might not contain a form. I think we can address this during a refactor of the Bootstrap modals, probably during a Bootstrap upgrade. I'll close this PR for now.
…d the warning message of unsaved content when closing editor.