diff options
author | Gina Haeussge <gina@foosel.net> | 2010-06-27 12:25:15 +0200 |
---|---|---|
committer | Gina Haeussge <gina@foosel.net> | 2010-06-27 12:25:15 +0200 |
commit | 40f3c0b59813d467030d51948d518069141fd998 (patch) | |
tree | 6e8e8b6e1c4f4be48ac76600f15bb8ff2c1c5ef0 /lib/exe/ajax.php | |
parent | 1a93c67cff4a7b3e30186141cd17f4ba6e113e84 (diff) | |
download | rpg-40f3c0b59813d467030d51948d518069141fd998.tar.gz rpg-40f3c0b59813d467030d51948d518069141fd998.tar.bz2 |
FS#433: Editor now uses onbeforeunload event to capture ANY leaving of it
besides via Save or Preview button. This has been successfully tested in FF,
Chrome and IE6/7/8. Opera does not support onbeforeunload, therefore the draft
is kept if the user navigates away from the editor.
Please test this.
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r-- | lib/exe/ajax.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 8b03bb07c..582be90e5 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -156,7 +156,7 @@ function ajax_lock(){ * @author Andreas Gohr <andi@splitbrain.org> */ function ajax_draftdel(){ - $id = cleanID($_POST['id']); + $id = cleanID($_REQUEST['id']); if(empty($id)) return; $client = $_SERVER['REMOTE_USER']; |