X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=1434bc50f7f37d4f7e1f4458d4e3fa082174159f;hb=19ec6c8a9e24975bf168a07512c58ce300307dec;hp=3b4d0e1615bd06189eea7f7926a4d7f4a38d4207;hpb=7a5719a29c3266f9730329fb0558dde04755564d;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 3b4d0e1..1434bc5 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -65,7 +65,7 @@ for (var i = 0 ; i < form['cc_contacts[]'].length ; ++i) { ccc += form['cc_contacts[]'].options[i].value + ";"; } - $.post(platal_baseurl + "emails/send", + $.xpost("emails/send", { save: true, token: '{xsrf_token}', from: form.from.value, @@ -150,13 +150,17 @@ saveMessage(); return true; }); - $(document).ready( + $( function() { // Remove empty options in select (they were added only for HTML // compatibility). $('#to_contacts option[value=""]').remove(); $('#cc_contacts option[value=""]').remove(); }); + + $(function() { + $("[name='to']").focus(); + }); {/literal} //]]> @@ -169,10 +173,10 @@
{xsrf_token_field} - + - + - + - + - +
Destinataires
de : @@ -183,19 +187,19 @@ {/if}' />
à :
copie :
copie cachée : @@ -218,7 +222,7 @@
{foreach key=key item=contact from=$contacts} - {if in_array($contact->hrpid,$smarty.request.cc_contacts)} + {if t($smarty.request.cc_contacts) && in_array($contact->hrpid,$smarty.request.cc_contacts)} @@ -263,7 +267,8 @@