X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=f6373392290a41a36ba0ccc7811225b2f223f624;hb=3c2a69dc96bae79936c677be7fb7554a43c555bc;hp=a8628b46056e7560b3ae5f289d7b237a67b8cdcf;hpb=1c0419d6b4c94643bfa7bed9a6b435bbdbbae02f;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index a8628b4..f637339 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -157,6 +157,10 @@ $('#to_contacts option[value=""]').remove(); $('#cc_contacts option[value=""]').remove(); }); + + $(document).ready(function() { + $("[name='to']").focus(); + }); {/literal} //]]> @@ -307,9 +311,9 @@ {literal} function removeAttachments() { - Ajax.update_html(null, 'emails/send', null); - document.getElementById('att_already').style.display = 'none'; - document.getElementById('att_form').style.display = ''; + $.xget('email/send'); + $('#att_already').hide(); + $('#att_form').show(); } {/literal} //]]>