This module adds a confirm dialog before leaving a page if its content has changed. Prevents losing unsaved data by accident. It does add this feature to all edit screens in the admin backend by default.
The module has following options to disable Form Save Reminder on certain edit screens.
- On edit Page
- On edit Template
- On edit Field
- On edit User, Role, Permission
- On edit Module
Download FormSaveReminder from modules directory.
- Download the zip file and put the folder renamed as "FormSaveReminder" into your site/modules/ folder
- Login to processwire and got to Modules page and click "Check for new modules". You should see a note that a new module was found. Search for it in the list and click "install".
- Done
- In some ocassion it can fail, when there's no change event thrown on an input field, that may even a custom module. However it can usually be fixed simply by adding a
$(element).trigger("change");
to the input textarea, input or select html object. - There seems to be some issue with autocomplete page fields when adding items on the fly is enabled. I will look into this later
- small bug fix for CKEditor in inline mode not getting recognized
- bug fix naming function
- refactored code a bunch to simplify things
- added support for CKeditor, regular and inline mode
- made alert message translatable
- fixed issue with delete button throwing the alert
- fixed issue with script adding (again)
- updated some texts and documentation
- fixed issue with script adding
- fixed subdir installation path
- added script versioning