This light plugin opens a Javascript confirmation popup when user tries to refresh or visit another page (or close the browser window) if some fields have changed in a not yet submitted form. It is very similar to the Facebook feature.
Demo:
Set a value (even 0) in the 'Name Your Price' Field on this page and try refreshing or leaving the page.
Instructions:
This archive comes with 2 plugins. Choose one, don't install both.
CHOOSE EITHER:
- content plugin will only load when JFORM (Joomla API forms) are loaded
- system plugin will load on every of your site pages
Plugin has 2 parameters:
- exclusive_formclass allows admin to set a form class to focus the plugin process on some forms only
- ignore_fieldsclass allows admin to exclude some fields from being watched by the plugin. Especially usefull for Ajax forms like Ajax search fields etc...