X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=f6373392290a41a36ba0ccc7811225b2f223f624;hb=3c2a69dc96bae79936c677be7fb7554a43c555bc;hp=75b0d67f6cde65e4993742b273c6606957cb354f;hpb=0073747ac81cc9cff9e43847eb008f0e815255f0;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 75b0d67..f637339 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -150,6 +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(); + }); + + $(document).ready(function() { + $("[name='to']").focus(); + }); {/literal} //]]> @@ -162,10 +173,10 @@
{xsrf_token_field} - + - + - + - + - +
Destinataires
de : @@ -176,19 +187,19 @@ {/if}' />
à :
copie :
copie cachée : @@ -211,39 +222,53 @@

+ {if !$to_not_empty} + {* HTML compatibility *} + + {/if} + + {if !$to_not_empty} + {/if} +
Destinataires
- >> >>
- << << + >> >>
+ << <<
En copie
- >> >>
- << << + >> >>
+ << <<