Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Libriciel
web-DPO
Commits
cb1ef2c9
Commit
cb1ef2c9
authored
Aug 12, 2020
by
Théo GUILLON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout : alert pour indiquer si l'aipd est obligatoire ou non
parent
e38c50c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/webroot/js/Fiches/pia.js
app/webroot/js/Fiches/pia.js
+5
-5
No files found.
app/webroot/js/Fiches/pia.js
View file @
cb1ef2c9
...
...
@@ -179,12 +179,12 @@ $(document).ready(function () {
function
displayFieldTraitementConsidereRisque
(
val
)
{
if
(
val
==
'
Oui
'
)
{
//
alert('
PIA
OBLIGATOIRE');
alert
(
'
La réalisation d
\'
une analyse d
\'
impact (AIPD) est
OBLIGATOIRE
'
);
$
(
'
#obligation_pia
'
).
val
(
'
1
'
);
}
if
(
val
==
'
Non
'
)
{
//
alert('
PIA NON OBLIGATOIRE
');
alert
(
'
La réalisation d
\'
une analyse d
\'
impact (AIPD) n
\'
est pas obligatoire
'
);
$
(
'
#obligation_pia
'
).
val
(
'
0
'
);
}
}
...
...
@@ -194,7 +194,7 @@ function displayFieldRisque(showFirst = true)
let
nbChecked
=
$
(
"
#info_pia :checkbox:checked
"
).
length
;
if
(
nbChecked
>=
2
){
//
alert(
"PIA
OBLIGATOIRE
"
);
alert
(
'
La réalisation d
\'
une analyse d
\'
impact (AIPD) est
OBLIGATOIRE
'
);
$
(
'
#obligation_pia
'
).
val
(
'
1
'
);
$
(
'
#traitement_considere_risque
'
).
parent
().
parent
().
hide
();
...
...
@@ -231,7 +231,7 @@ function displayFieldPiaListNotRequired(id, val) {
}
else
{
if
(
val
==
'
Oui
'
)
{
//
alert('
PIA non
obligatoire');
alert
(
'
La réalisation d
\'
une analyse d
\'
impact (AIPD) n
\'
est pas
obligatoire
'
);
$
(
'
#obligation_pia
'
).
val
(
'
0
'
);
}
...
...
@@ -271,7 +271,7 @@ function displayFieldPiaListRequired(id, val)
}
else
{
if
(
val
==
'
Oui
'
)
{
//
alert(
"PIA
OB
I
LGATOIRE
"
);
alert
(
'
La réalisation d
\'
une analyse d
\'
impact (AIPD) est
OBL
I
GATOIRE
'
);
$
(
'
#obligation_pia
'
).
val
(
'
1
'
);
}
...
...
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