EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on December 04, 2017, 01:16:55 PM



Title: Verify uncommited changes before closing a tab
Post by: rezzonico on December 04, 2017, 01:16:55 PM
Hi all,

I have a tab. In the tab there is a form.
In the form there are some fields and a datagrid.

If a user close the tab I want to verify if there are uncommited changes.
For the datagrid I can use "getChanges", but how can I verify if the user has modified the others fields in the form ?

Thanks for any help
Miche


Title: Re: Verify uncommited changes before closing a tab
Post by: stworthy on December 04, 2017, 06:18:46 PM
The form has the 'onChange' event that will be triggered when a field is changed. Listen to this event to detect whether the user change the form values.


Title: Re: Verify uncommited changes before closing a tab
Post by: rezzonico on December 05, 2017, 01:45:46 AM
It works.
Thanks a lot !

Miche