X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=a0d501aa6f56129544bbe276b10e3c55135d9c8e;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=42bfa4389c853563239935169c887eaa56ab2219;hpb=9e1816c7666767755abbc24f6a0df290efff81b6;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 42bfa43..a0d501a 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 @@