From: x2001corpet Date: Sun, 4 Feb 2007 16:55:40 +0000 (+0000) Subject: AJaX sur emails, rajoute un ack X-Git-Tag: xorg/0.9.14~288 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cdafa49e854542f19a2a37ad64a9964360982dea;p=platal.git AJaX sur emails, rajoute un ack git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1479 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/htdocs/javascript/ajax.js b/htdocs/javascript/ajax.js index e274892..5cff50b 100644 --- a/htdocs/javascript/ajax.js +++ b/htdocs/javascript/ajax.js @@ -41,7 +41,7 @@ Ajax = { Ajax.init = true; }, - update_html: function(obj, src) + update_html: function(obj, src, func) { Ajax.prepare_client(); if (Ajax.xml_client == null) { @@ -55,6 +55,9 @@ Ajax = { if (obj != null) { document.getElementById(obj).innerHTML = Ajax.xml_client.responseText; } + if (func != null) { + func(Ajax.xml_client.responseText); + } } else if (Ajax.xml_client.status == 403) { window.location.reload(); } diff --git a/templates/emails/index.tpl b/templates/emails/index.tpl index ea6c2e2..04048cb 100644 --- a/templates/emails/index.tpl +++ b/templates/emails/index.tpl @@ -24,6 +24,47 @@ +{literal} + +{/literal} @@ -33,12 +74,13 @@ Tes adresses polytechniciennes sont :

{iterate from=$aliases item=a} - + {if $a.a_vie}(**){/if}{if $a.cent_ans}(*){/if} {$a.alias}@{#globals.mail.domain#} et @{#globals.mail.domain2#} {if $a.expire}(expire le {$a.expire|date_format}){/if}
{/iterate}
+

L'adresse cochée est celle que tu utilises le plus (et qui sera donc affichée sur ta carte de visite, ta fiche, etc...). Coche une autre case pour en changer !
Mes adresses polytechniciennes à vie