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:
parent
2aae281120
commit
65c979ea59
1 changed files with 3 additions and 3 deletions
|
@ -2,8 +2,8 @@ $(function() {
|
||||||
$(".facteur").on("click", function(){
|
$(".facteur").on("click", function(){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
var sticker = $this.attr('data-mref')
|
var sticker = $this.attr('data-mref')
|
||||||
.replace('pont', '.')
|
.replace(/pont/g, '.')
|
||||||
.replace('arbre', '@')
|
.replace(/arbre/g, '@')
|
||||||
.replace(/(.)-/g, '$1');
|
.replace(/(.)-/g, '$1');
|
||||||
|
|
||||||
var boite = $("<a>", {href:"ma"+"il"+"to:"+sticker}).text(sticker);
|
var boite = $("<a>", {href:"ma"+"il"+"to:"+sticker}).text(sticker);
|
||||||
|
|
Loading…
Reference in a new issue