diff --git a/core/trunk/core/manage_action.php b/core/trunk/core/manage_action.php index fb3439724868321fe9d9abf684fd8972ddb7b8b2..48fb7b555d1a5a772033e206b52749e23efe38e1 100644 --- a/core/trunk/core/manage_action.php +++ b/core/trunk/core/manage_action.php @@ -300,6 +300,12 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST[' echo "{status : 2, confirm_content : '".addslashes(_ACTION_CONFIRM." ".functions::xssafe($label_action))."', validate : '"._VALIDATE."', cancel : '"._CANCEL."', label_action : '".addslashes(functions::xssafe($label_action))."', 'action_status' : '".functions::xssafe($status)."'}"; exit(); } + elseif( $_POST['req'] == 'first_request' && $confirm == false && $action_page == 'close_mail_with_attachment') + { + echo "{status : 3, form_content : '<div class=\"h2_title\">" . addslashes(_ADD_ATTACHMENT_OR_NOTE) . + "</div><p class=\"buttons\"><input type=\"button\" class=\"button\" value=\""._CANCEL."\" onclick=\"destroyModal(\'modal_" .$id_action . "\')\" id=\"submit\" name=\"submit\"></p>', height : '250px', width : '300px', 'mode_frm' : '', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}"; + exit(); + } else { if($confirm == false) diff --git a/core/trunk/core/xml/actions_pages.xml b/core/trunk/core/xml/actions_pages.xml index d00133bb3bbc19a0d9e6ed2560306a9a62dcc9d4..628f8bdf78c21cece118324104761f7814a4fea8 100644 --- a/core/trunk/core/xml/actions_pages.xml +++ b/core/trunk/core/xml/actions_pages.xml @@ -179,6 +179,17 @@ An action page is described in a ACTIONPAGE tag : <COLLECTIONS> <COLL_ID>letterbox_coll</COLL_ID> </COLLECTIONS> + </ACTIONPAGE> + <ACTIONPAGE> + <ID>close_mail_with_attachment</ID> + <LABEL>_CLOSE_MAIL_WITH_ATTACHMENT</LABEL> + <NAME>close_mail_with_attachment</NAME> + <ORIGIN>apps</ORIGIN> + <MODULE></MODULE> + <FLAG_CREATE>false</FLAG_CREATE> + <COLLECTIONS> + <COLL_ID>letterbox_coll</COLL_ID> + </COLLECTIONS> </ACTIONPAGE> <!-- ACTIONS AJOUTEES PAR DIS --> <ACTIONPAGE>