X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fajax.js;h=9eb6a605cef74287e99f1540fde75e06f317cf33;hb=16594a1ac8d7cbff8a51e422a6a6d9e575129d9c;hp=bc913035cc326b27358bd1ae60340259601e382b;hpb=5ff3f06b36211092cf9585d5677bd41ee7abc8ee;p=platal.git diff --git a/htdocs/javascript/ajax.js b/htdocs/javascript/ajax.js index bc91303..9eb6a60 100644 --- a/htdocs/javascript/ajax.js +++ b/htdocs/javascript/ajax.js @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2003-2007 Polytechnique.org * + * Copyright (C) 2003-2008 Polytechnique.org * * http://opensource.polytechnique.org/ * * * * This program is free software; you can redistribute it and/or modify * @@ -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),