[Pmwiki-users] Leaving Edit page confirmation...
Thu Dec 2 10:20:26 CST 2004
> Is it possible to Popup a confirmation when a user tries to exit an
> editing action?
shows an alert / querybox and submits or cancels the edit.
implement a new action, e.g. "editcomfirm", change the submit-action from "edit"
to "editconfirm". HandeEditcomfirm displayes another form with buttons like
"save changes" "forget my last input" "what the hell are you asking ?"
(ok, maybe you can skip the last button :-)
and _all_ other edit-page-fields as hidden fields.
The "save changes" button is then the original edit-submit-button.
Submitting that form will call action=edit with post=1 (or another var that
tells pmwiki to store the edited data, forgot the name, have to lokk it up)
(ok, sounds a bit complicated, but that should not be hard to implement)
More information about the pmwiki-users