From 65c979ea591e04c42e96dc8fe9a993cf4ff92cd5 Mon Sep 17 00:00:00 2001 From: Guillaume Bertholon Date: Wed, 2 Sep 2020 18:28:26 +0200 Subject: [PATCH] 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/ --- gestioncof/cms/static/cofcms/js/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gestioncof/cms/static/cofcms/js/script.js b/gestioncof/cms/static/cofcms/js/script.js index c7693a6d..0c520e9f 100644 --- a/gestioncof/cms/static/cofcms/js/script.js +++ b/gestioncof/cms/static/cofcms/js/script.js @@ -2,10 +2,10 @@ $(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 = $("", {href:"ma"+"il"+"to:"+sticker}).text(sticker); $(this).before(boite) .remove();