{
if (confirm("Supprimer l'adresse " + email + " ?")) {
$.get(link.href, {},function() {
- $('#line_' + email.replace('@', '_at_').replace('.', '\\.')).remove();
+ $('#line_' + email.replace('@', '_at_').replace(/\./g, '_dot_')).remove();
showRemove();
activeEnable();
});
<th> </th>
</tr>
{foreach from=$emails item=e name=redirect}
- <tr class="{cycle values="pair,impair"}" id="line_{$e->email|replace:'@':'_at_'}">
+ <tr class="{cycle values="pair,impair"}" id="line_{$e->id}">
<td>
<strong>
{if $e->broken}<span class="erreur">{assign var="error" value="1"}{/if}
</a>
{else}
{if $e->sufficient}<span class="remove_email"><span style="display:none"> </span></span>{/if}
- <a href="emails/redirect#{$e->email}">{icon name=information title="Plus d'informations"}</a>
+ <a href="emails/redirect#{$e->type}">{icon name=information title="Plus d'informations"}</a>
{/if}
</td>
</tr>
{/if}
{if #globals.mailstorage.googleapps_active# or hasPerm('admin') or $googleapps}
+{if hasPerm('gapps')}
<br />
<p id="googleapps">
Grâce à un partenariat avec Google, Polytechnique.org te propose également un compte
</tr>
</table>
{/if}
+{/if}
{if $eleve}
<h1>Pour les élèves (non encore diplômés)</h1>