X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=15248246794199cbcb0868a1a3865c65b11df71d;hb=94b6106cc3fe745be3e56deada74e1c636accae0;hp=263fce4f79db2ac58adf0513df0a6d70c8836038;hpb=d645ceb701b0e8aa1de2e5271bed35e56ef169f1;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 263fce4..1524824 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -65,7 +65,7 @@ for (var i = 0 ; i < form['cc_contacts[]'].length ; ++i) { ccc += form['cc_contacts[]'].options[i].value + ";"; } - $.post(platal_baseurl + "emails/send", + $.xpost("emails/send", { save: true, token: '{xsrf_token}', from: form.from.value, @@ -142,6 +142,15 @@ } } + function toggleWiki() + { + if ($('[name="wiki"]').val() == 'text') { + $('[name="wiki"]').val('wiki'); + } else { + $('[name="wiki"]').val('text'); + } + } + $(window).unload( function() { if (sent) { @@ -150,7 +159,7 @@ saveMessage(); return true; }); - $(document).ready( + $( function() { // Remove empty options in select (they were added only for HTML // compatibility). @@ -158,7 +167,7 @@ $('#cc_contacts option[value=""]').remove(); }); - $(document).ready(function() { + $(function() { $("[name='to']").focus(); }); {/literal} @@ -180,11 +189,8 @@ de : - + @@ -284,8 +290,12 @@ Sujet : 
Tu peux utiliser des {icon name=information title="Syntaxe wiki"} marqueurs wiki pour formatter ton texte.
- +