Replace all "pont" by "." in COF clubs emails

This patches wrongly displayed "Contact : fromages@lists.enspontfr" on
https://cof.ens.fr/gestion/sitecof/annuaires-des-clubs/
This commit is contained in:
Guillaume Bertholon 2020-09-02 18:28:26 +02:00 committed by Martin Pépin
parent 2aae281120
commit 65c979ea59
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -2,8 +2,8 @@ $(function() {
$(".facteur").on("click", function(){
var $this = $(this);
var sticker = $this.attr('data-mref')
.replace('pont', '.')
.replace('arbre', '@')
.replace(/pont/g, '.')
.replace(/arbre/g, '@')
.replace(/(.)-/g, '$1');
var boite = $("<a>", {href:"ma"+"il"+"to:"+sticker}).text(sticker);