Commit 09a51e94 authored by N. Peraldi's avatar N. Peraldi

formatted code

parent abb08ba9
//liste des blocs qui peuvent être affichés / cachés
var blocks = ["link", "paraSecondSelection", "cotisation", "informationsCollectivite", "formulaireEPCIMutualisant", "boutonEnvoyer"];
var maxCotisation = 12000;
......@@ -24,9 +20,7 @@ function displayMask(display) {
function displayMaskOptions(display) {
//sert à afficher / cacher les options du 2e select menu
var toutesLesOptions =document.getElementsByName("optionSelect2");
var toutesLesOptions = document.getElementsByName("optionSelect2");
for (var j = 0; j < toutesLesOptions.length; j++) {
......@@ -37,16 +31,14 @@ function displayMaskOptions(display) {
console.log(display + "===" + toutesLesOptions[j].getAttribute("class"));
if(toutesLesOptions[j].getAttribute("value")==="none"){
if (toutesLesOptions[j].getAttribute("value") === "none") {
toutesLesOptions[j].selected = true;
}
toutesLesOptions[j].hidden = false;
}
else {
} else {
console.log(display + "=/=" + toutesLesOptions[j].getAttribute("class"));
toutesLesOptions[j].hidden = true;
}
......@@ -118,7 +110,7 @@ function linkRedirection(link, title) {
document.getElementById("linkRedirection").setAttribute("title", title);
}
function prepareDocument(){
function prepareDocument() {
displayMask([""]);
document.getElementById("firstSelect").setAttribute("onchange", "firstAction()");
document.getElementById("boutonValiderNombresEPCI").setAttribute("onclick", "traitementEPCIMutualisant()");
......
......@@ -96,7 +96,7 @@ function createNameClass($variable)
);
$variable = strtr($variable,$chars);
$variable = strtr($variable, $chars);
return $variable;
}
......@@ -166,11 +166,9 @@ sort($classSelectMenu);
sort($classSelectMenuExtended);
?>
<h1>Formulaire de renouvellement d'adhésion</h1>
<p>
<b>Votre catégorie :</b>
......@@ -349,10 +347,10 @@ sort($classSelectMenuExtended);
<script>
prepareDocument();
prepareDocument();
</script>
<?php get_footer();?>
<?php get_footer(); ?>
</body>
</html>
\ 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