Correction bug
This commit is contained in:
parent
8aa5d7e86f
commit
730899c99e
@ -28,9 +28,12 @@ function calcul_section(data) {
|
|||||||
epreuve.entries.forEach(entry => {
|
epreuve.entries.forEach(entry => {
|
||||||
let field = document.getElementById(entry + "-note");
|
let field = document.getElementById(entry + "-note");
|
||||||
|
|
||||||
if (field.valid) caduque = false;
|
if (field.value && field.checkValidity()) {
|
||||||
if (field.valid || field.required) {
|
console.log(field.id);
|
||||||
points_epreuve += epreuve.coef * arrondi_dixieme(parseFloat((field.value) ? field.value : 0));
|
points_epreuve += epreuve.coef * arrondi_dixieme(parseFloat(field.value));
|
||||||
|
coefficients += epreuve.coef;
|
||||||
|
caduque = false;
|
||||||
|
} else if (field.required) {
|
||||||
coefficients += epreuve.coef;
|
coefficients += epreuve.coef;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user