X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=99326de88c68f5a6a968cb5435c875a7d58a94f5;hb=51fb3b6facb76baf990d0407baf9be4c669fffa7;hp=4e9b0d3bfda4a15f8f84d7be51198b6339c50837;hpb=684195f33b11e3067200dd3a9e14304bd7d04463;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 4e9b0d3..99326de 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -150,6 +150,13 @@ 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(); + }); {/literal} //]]> @@ -211,49 +218,60 @@

+ {if !$to_not_empty} + {* HTML compatibility *} + + {/if} + + {if !$to_not_empty} + {/if} +
Destinataires
- >> >>
- << << + >> >>
+ << <<
En copie
- >> >>
- << << + >> >>
+ << <<
- {foreach item=contact from=$contacts} - - {/foreach} {/if}