X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=3b4d0e1615bd06189eea7f7926a4d7f4a38d4207;hb=12ce19efb0f31da0db58f6a5ce4c27bb318097df;hp=75b0d67f6cde65e4993742b273c6606957cb354f;hpb=0073747ac81cc9cff9e43847eb008f0e815255f0;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 75b0d67..3b4d0e1 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} //]]> @@ -215,29 +222,42 @@ + {assign var="to_not_empty" value="true"} {/if} {/foreach} -
+ {if !$to_not_empty} + {* HTML compatibility *} + + {/if} + + {if !$to_not_empty} + {/if} +
Destinataires
- >> >>
- << << + >> >>
+ << <<
En copie
- >> >>
- << << + >> >>
+ << <<