Exit on unsaved form
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
It works, but it is still under intensive development
--------------------------------------------
During the development phase:
The module checks whether the currently form has been changed before process of leaving / closing the overlay / form. When the form is not saved confirmation window is displayed with the text defined in it.
it allows to set up css class for changed elements, and (feature) revert element state.
Co-maintainer wanted
I do this in my spare time, an extra co-maintainer would be welcome. If you're interested in helping, please contact me or open an issue in the this module issue tracker.
Install
- Download
git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/ajtis.pl/1934834.git exit_on_unsaved_form - Turn on module
Form action is triggered when the user:
- - Closing the overlay
- - Close the tab / browser window
- - Pressing the key backspace
The plan:
- - Selective choice of forms
- - Permissions for users
- Permissions for pages - like block- Permissions for groups - like block- Permissions from php filter - like block- - Preference settings in the client's account
- Adding a css class to the changed elements- - Improved recognition of altered forms (compare with the state of the base)
- - remove state and classes form reverted imputs
- - Exceptions for wysiwyg editors.
- Module uninstall (clear vars)- Module install (init vars)- - Add revert option
Got other ideas ? please add issue!
Why this module ?
- Simple
- Configurable
- Fast (try to avoid re-checking when no changes made)
- Because in overlay module bbq plugin don't allow for proper usage of before overlay close event and this simple plugin allows to do that :)
-----------
Best Regards, Ajtis.pl - Maciej Szewczyk
