Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
b1a7f1dd
Commit
b1a7f1dd
authored
Jul 04, 2019
by
N. Peraldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit: formatted JS code
parent
b4549fb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
adhesionForm.js
adhesionForm.js
+1
-24
No files found.
adhesionForm.js
View file @
b1a7f1dd
...
...
@@ -12,8 +12,6 @@ function displayMask(display) {
}
else
{
document
.
getElementById
(
blocks
[
h
]).
style
.
display
=
"
none
"
;
}
}
}
...
...
@@ -36,26 +34,19 @@ function displayMaskOptions(display) {
}
toutesLesOptions
[
j
].
hidden
=
false
;
}
else
{
console
.
log
(
display
+
"
=/=
"
+
toutesLesOptions
[
j
].
getAttribute
(
"
class
"
));
toutesLesOptions
[
j
].
hidden
=
true
;
}
}
}
function
firstAction
()
{
//fonction effectuée lorsque le premier select est validé
//on recup ce qui a été cliqué
var
e
=
document
.
getElementById
(
"
firstSelect
"
);
var
strUser
=
e
.
options
[
e
.
selectedIndex
].
value
;
//on reagit en fonction
//si il a cliqué sur individu, redirigé vers helloasso
...
...
@@ -68,8 +59,6 @@ function firstAction() {
else
if
(
strUser
===
"
Association
"
)
{
setCotisation
(
"
Association
"
);
displayMask
([
"
cotisation
"
,
"
informationsCollectivite
"
,
"
boutonEnvoyer
"
]);
document
.
getElementById
(
"
secondSelection
"
).
required
=
false
;
setEPCIRequired
(
false
);
...
...
@@ -86,13 +75,11 @@ function firstAction() {
//si il a cliqué sur autre chose : on cherche à connaitre la taille de la collectivité, on affiche le 2e select
else
{
displayMaskOptions
(
strUser
);
document
.
getElementById
(
"
secondSelection
"
).
required
=
true
;
displayMask
([
"
paraSecondSelection
"
]);
setEPCIRequired
(
false
);
}
}
...
...
@@ -103,7 +90,6 @@ function isWordIn(word, list) {
return
true
}
}
return
false
}
...
...
@@ -134,7 +120,6 @@ function prepareDocument() {
break
;
}
}
firstAction
();
if
(
choiceType
===
"
EPCIMutualisant
"
)
{
...
...
@@ -158,8 +143,6 @@ function prepareDocument() {
}
}
}
var
choicePeriod
=
document
.
getElementById
(
"
ancienSelectPeriod
"
).
getAttribute
(
"
value
"
);
...
...
@@ -171,8 +154,6 @@ function prepareDocument() {
listOfPeriodOptions
[
c
].
selected
=
true
;
}
}
}
function
secondAction
()
{
...
...
@@ -189,14 +170,12 @@ function secondAction() {
}
else
{
displayMask
([
"
paraSecondSelection
"
]);
}
}
function
setCotisation
(
id
,
x
=
0
)
{
//définit la cotisation à afficher, l'option x sert uniquement pour le tarif EPCI mutualisant qui varie.
//définit la cotisation à afficher, l'option x sert uniquement pour le tarif EPCI mutualisant qui varie.
var
paragraphCotList
=
document
.
getElementsByClassName
(
"
PCOT
"
);
var
research
=
"
PCOT-
"
+
id
;
...
...
@@ -215,7 +194,6 @@ function setCotisation(id, x = 0) {
console
.
log
(
paragraphCotList
[
b
].
getAttribute
(
"
id
"
)
+
"
=/=
"
+
research
);
}
}
}
function
setEPCIRequired
(
boolean
)
{
...
...
@@ -249,7 +227,6 @@ function traitementEPCIMutualisant() {
setCotisation
(
"
EPCIMutualisant
"
,
resultat
);
displayMask
([
"
cotisation
"
,
"
informationsCollectivite
"
,
"
formulaireEPCIMutualisant
"
,
"
boutonEnvoyer
"
]);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment