X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fajax.js;h=9eb6a605cef74287e99f1540fde75e06f317cf33;hb=61e0e8619a9e391d9536d1af3c8cd441491bbc99;hp=854c4ef5af6880ac205b539038502e691fa33853;hpb=d0327f6de73e81c4bcc656471ca4161e4f1e1e1b;p=platal.git diff --git a/htdocs/javascript/ajax.js b/htdocs/javascript/ajax.js index 854c4ef..9eb6a60 100644 --- a/htdocs/javascript/ajax.js +++ b/htdocs/javascript/ajax.js @@ -140,9 +140,9 @@ function previewWiki(idFrom, idTo, withTitle, idShow) } } -function sendTestEmail(forlife) +function sendTestEmail(token, forlife) { - Ajax.update_html(null, 'emails/test' + (forlife == null ? '' : '/' + forlife), + Ajax.update_html(null, 'emails/test' + (forlife == null ? '' : '/' + forlife) + '?token=' + token, function() { showTempMessage('mail_sent', "Un mail a été envoyé avec succès" + (forlife == null ? " sur ton adresse." : " sur l'adresse de " + forlife),