PITS /
00639: Improve saving of entries
Summary: Improve saving of entries
Created: 2006-01-11 09:20
Status: Closed - cookbook recipes
Category: Feature
Assigned:
Priority: 2
Version: 2.0.12
OS: Debian/Apache13/?
Description: From time to time I loose some changes because I either accidently close the browser window or the browser crashes. Therefore I suggest the following features:
- Autosave: Option to save changes (perhaps marked as drafts) every X minutes, configurable on user basis or by checking an option on the edit page
- Reposition cursor after "Save and Edit": By using ctrl-u the changes can be saved and editing still continues. The problem is that the cursor has to be repositioned. This should be solveable by a javascript which saves the changes in a background window or something like that.
- Confirmation dialog on closing or leaving edit window.
I wasn't able to get the code from BrBrBr supplied on http://pmwiki.org/wiki/Cookbook/WikiForms to work.The javascript code (http://pmwiki.org/wiki/Cookbook/WikiFormsRecipes) seems to work. It might be an idea to add that to the main package (perhaps as an option). From what I've discovered there is no way to prevent closing a window but at least leaving it accidently by clicking on a link now shows a warning.- This code now given its own cookbook entry (Cookbook:ConfirmEditNotSaved) as it has applicability well beyond wikiforms...
See also Cookbook:NotsavedWarning? ().
Re: repositioning cursor, see: Cookbook.RememberEditPosition (Return the editing textarea to the previous position when previewing a page) —Eemeli Aro May 18, 2009, at 05:11 AM
re: AutoSave, see: Cookbook.AutoSave (Autosave pages in the background while editing). Seems like all functions exist in the cookbook. I'm closing this entry. --Petko July 08, 2009, at 07:52 AM