Commit cc0a5ac9 authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : affichage de la pop-up que lorsqu'il y a deux cases de coché

parent 8b10867e
......@@ -198,7 +198,7 @@ function displayFieldRisque(showFirst = true)
let nbChecked = $("#info_pia :checkbox:checked").length;
if (nbChecked >= 2) {
if (showFirst === true) {
if (showFirst === true && nbChecked === 2) {
alert('La réalisation d\'une analyse d\'impact (AIPD) est OBLIGATOIRE');
}
$('#obligation_pia').val('1');
......
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