Commit 04562b52 authored by N. Peraldi's avatar N. Peraldi

reformat code

parent fc51d346
//liste des blocs qui peuvent être affichés / cachés
var blocks = ["link", "paraSecondSelection", "cotisation", "informationsCollectivite", "formulaireEPCIMutualisant", "boutonEnvoyer","chorus_pro"];
var blocks = ["link", "paraSecondSelection", "cotisation", "informationsCollectivite", "formulaireEPCIMutualisant", "boutonEnvoyer", "chorus_pro"];
var maxCotisation = 12000;
......@@ -35,16 +35,16 @@ function displayMaskOptions(display) {
toutesLesOptions[j].hidden = false;
//on affiche le label
document.getElementById("TYPENBR-"+toutesLesOptions[j].getAttribute("class")).style.display="block";
document.getElementById("TYPENBR-" + toutesLesOptions[j].getAttribute("class")).style.display = "block";
console.log ("on affiche " + document.getElementById("TYPENBR-"+display));
console.log("on affiche " + document.getElementById("TYPENBR-" + display));
} else {
console.log(display + "=/=" + toutesLesOptions[j].getAttribute("class"));
toutesLesOptions[j].hidden = true;
//On cache le label
document.getElementById("TYPENBR-"+toutesLesOptions[j].getAttribute("class")).style.display="none";
document.getElementById("TYPENBR-" + toutesLesOptions[j].getAttribute("class")).style.display = "none";
}
}
}
......@@ -173,7 +173,7 @@ function secondAction() {
setCotisation(selectedTranch);
displayMask(["paraSecondSelection", "cotisation", "informationsCollectivite", "boutonEnvoyer","chorus_pro"]);
displayMask(["paraSecondSelection", "cotisation", "informationsCollectivite", "boutonEnvoyer", "chorus_pro"]);
} else {
displayMask(["paraSecondSelection"]);
}
......@@ -202,7 +202,7 @@ function setCotisation(id, x = 0) {
}
}
function setChorusProRequired(boolean){
function setChorusProRequired(boolean) {
document.getElementById("siretCollectivite").required = boolean;
document.getElementById("numeroEngagementCollectivite").required = boolean;
document.getElementById("codeCollectivite").required = boolean;
......@@ -237,7 +237,7 @@ function traitementEPCIMutualisant() {
}
setCotisation("EPCIMutualisant", resultat);
displayMask(["cotisation", "informationsCollectivite", "formulaireEPCIMutualisant", "boutonEnvoyer","chorus_pro"]);
displayMask(["cotisation", "informationsCollectivite", "formulaireEPCIMutualisant", "boutonEnvoyer", "chorus_pro"]);
}
}
}
\ No newline at end of file
......@@ -6,9 +6,7 @@ $maxMembersPerLine = 3;
get_header();
?>
<ul>
<ul>
<?php
global $post; //variable wp
$order = "asc";
......@@ -65,5 +63,5 @@ get_header();
echo "</div></div>";
wp_reset_postdata(); ?>
</ul>
</ul>
<?php get_footer(); ?>
\ No newline at end of file
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