From a34b07a534fcaa289191146b1918f6a55ffd5a4e Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 15 Nov 2005 19:26:57 +0000 Subject: [PATCH] Added new scheme to allow multiple plugins to share the onsubmit handler for the compose form git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10368 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 3 +++ src/compose.php | 32 +++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9547232e..2f50445d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -481,6 +481,9 @@ Version 1.5.1 -- CVS - Prevent right_frame to be set to '//www.example.com'. - Tweak printer friendly attachment view. - Added new compose_send_after hook. + - Added new scheme to allow multiple plugins to share the onsubmit handler + for the compose form from the compose_form hook. See plugin.txt for more + information. Version 1.5.0 - 2 February 2004 ------------------------------- diff --git a/src/compose.php b/src/compose.php index e025c8ad..768a8eed 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1029,7 +1029,8 @@ function showInputForm ($session, $values=false) { $from_htmladdr_search, $location_of_buttons, $attachment_dir, $username, $data_dir, $identity, $idents, $delete_draft, $mailprio, $compose_new_win, $saved_draft, $mail_sent, $sig_first, - $username, $compose_messages, $composesession, $default_charset; + $username, $compose_messages, $composesession, $default_charset, + $compose_onsubmit; if (checkForJavascript()) { $onfocus = ' onfocus="alreadyFocused=true;"'; @@ -1068,8 +1069,37 @@ function showInputForm ($session, $values=false) { echo "\n" . '
\n"; echo addHidden('startMessage', $startMessage); -- 2.25.1