Closed
Description
Hi,
I'm trying to add window.onbeforeunload where popup shows if the user leaves the page. I also want to implement something like dirtyForm flag, if the user has made any changes to the form and in general I want to catch all events like add new Rule, add new Group, change filter, change operator, change values, etc.
I know I can implement all events and change this flag there, however I wanted to check if there is something like global event that will catch all these, and only implement it there, instead of all events.
Let me know if you have any ideas to optimize my code.
Thanks for your help!