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 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();