Commit 6a8f359f by Yvon

fix tav_env condition

parent 2f73e642
...@@ -75,13 +75,13 @@ $(document).ready(function() { ...@@ -75,13 +75,13 @@ $(document).ready(function() {
let linksToCotisationAdherent = $('a[href="/admin/cotisation_adherent/list"]'); let linksToCotisationAdherent = $('a[href="/admin/cotisation_adherent/list"]');
for(let i = 0 ; i < linksToCotisationAdherent.length ; i++) { for(let i = 0 ; i < linksToCotisationAdherent.length ; i++) {
if(linksToCotisationAdherent[i].innerText === "Cotisation") { if(linksToCotisationAdherent[i].innerText === "Cotisation") {
linksToCotisationAdherent[i].parentNode.style.display = tav_env ? "none" : ""; linksToCotisationAdherent[i].parentNode.style.display = (tav_env === "1") ? "none" : "";
} }
} }
let linksToProfilDeCotisation = $('a[href="/admin/profilcotisation/list"]'); let linksToProfilDeCotisation = $('a[href="/admin/profilcotisation/list"]');
for(let i = 0 ; i < linksToProfilDeCotisation.length ; i++) { for(let i = 0 ; i < linksToProfilDeCotisation.length ; i++) {
if(linksToProfilDeCotisation[i].innerText === "Profil De Cotisation") { if(linksToProfilDeCotisation[i].innerText === "Profil De Cotisation") {
linksToProfilDeCotisation[i].parentNode.style.display = tav_env ? "" : "none"; linksToProfilDeCotisation[i].parentNode.style.display = (tav_env === "1") ? "" : "none";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment