Confirm dialog close when user has entered data and not saved
will_in_wi - January 15, 2009 - 20:48
| Project: | Popups: Add and Reference |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Currently a user can fill in the form and click outside the box. When this happens, the data disappears and the user has to fill out the form again. Perhaps, a confirm dialog should show that gives the user the option to delete their data, to save their data, or to cancel and return to their data.

#1
This is the currently intended behavior. It could be configurable, but right now the is no support for popup on top of popups.
#2
While an inline popup would be nicer, I was thinking about this: http://www.w3schools.com/JS/tryit.asp?filename=tryjs_confirm .
I may look at this if I get some time.
#3
Sorry, I just noticed that I had changed the category back.
#4
Yeah, that is definitely possible. I would accept a patch that does this, as long as it is configurable and defaults to off.
Hint: you'll need to add this feature to the underlying Popups API, not here.