X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=24189b2e9df0238f33ebef606098309c8ac042b0;hb=a1c554a92888e0b017ba362817a67cc2849a9154;hp=4194e347bb03314cc3b93d375d9da229d9dce793;hpb=3f95a7bd17cd6cd7b218f12787276a485f496f1d;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 4194e34..24189b2 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2011 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; }); + $( + function() { + // Remove empty options in select (they were added only for HTML + // compatibility). + $('#to_contacts option[value=""]').remove(); + $('#cc_contacts option[value=""]').remove(); + }); + + $(function() { + $("[name='to']").focus(); + }); {/literal} //]]> @@ -162,10 +173,10 @@