X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=a0d501aa6f56129544bbe276b10e3c55135d9c8e;hb=f74509fbb4f06820dc3d028e3ffd2145f151b013;hp=4194e347bb03314cc3b93d375d9da229d9dce793;hpb=6d1747b3dbcf944c995dc2d87e8561c7a66f3aa6;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 4194e34..a0d501a 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -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 @@