X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=24189b2e9df0238f33ebef606098309c8ac042b0;hb=a1c554a92888e0b017ba362817a67cc2849a9154;hp=a0d501aa6f56129544bbe276b10e3c55135d9c8e;hpb=f74509fbb4f06820dc3d028e3ffd2145f151b013;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index a0d501a..24189b2 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 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,7 +150,7 @@ saveMessage(); return true; }); - $(document).ready( + $( function() { // Remove empty options in select (they were added only for HTML // compatibility). @@ -158,7 +158,7 @@ $('#cc_contacts option[value=""]').remove(); }); - $(document).ready(function() { + $(function() { $("[name='to']").focus(); }); {/literal} @@ -311,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} //]]>