From 65c979ea591e04c42e96dc8fe9a993cf4ff92cd5 Mon Sep 17 00:00:00 2001 From: Guillaume Bertholon Date: Wed, 2 Sep 2020 18:28:26 +0200 Subject: [PATCH 1/2] 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(); From c55a2c8c8e174a90c24fcb63ed55edaedcbf67c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 2 Sep 2020 20:35:17 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4af64c0b..e0ea4f60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ adhérents ni des cotisations. - Possibilité d'ajouter des champs d'infos supplémentaires en plus de l'email et de la page web dans les annuaires (clubs et partenaires). +- Corrige un bug d'affichage des adresses emails de clubs ## Version 0.7 - 29/08/2020