Ticket #191 (closed Improvement)
Warn users if they are leaving an editing session without clicking "save"
|Reported by:||idzelis@…||Owned by:|
[jira2trac import : issue created on October 17, 2005 3:12:52 PM CEST http://issues.cocoondev.org/browse/DSY-191 ]
Lots of times users can be editing a document, and then someone IM's them a link or they click on another link somewhere. This will most of the time replace the active web browsing session with the link. The user may have been in the middle of editing it, so they may lose all their changes.
I think something like this: http://www.4guysfromrolla.com/webtech/100604-1.shtml should be implemented. It is very very easy to add. The gist of it is this (taken from article):
var needToConfirm = true;
window.onbeforeunload = confirmExit;
return message to display in dialog box;
<input type="Submit" value="Save" onclick="needToConfirm = false;" />
You can see it in action here: