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