Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit aea4f6853b - Show all commits

View File

@ -435,6 +435,7 @@
/* Affectation à un groupe */
/****************************/
var progressNb = 0;
var progressRef = 0;
function affectationGo() {
let from = document.querySelector("#affectationFrom").value;
let to = document.querySelector("#affectationTo").value;
@ -459,6 +460,7 @@
if (elements.length > 1) {
progress.style.setProperty('--reference', elements.length);
progress.style.setProperty('--nombre', 0);
progressRef = elements.length;
progressNb = 0;
}
@ -512,8 +514,13 @@
this.classList.remove("saving");
this.classList.add("saved");
setTimeout(() => { this.classList.remove("saved") }, 800);
let progress = document.querySelector("#zoneChoix .autoAffectation .progress");
progress.style.setProperty('--nombre', ++progressNb);
if (progressNb == progressRef) {
sco_message("Tous les étudiants sont affectés");
}
return;
}
throw 'Les données retournées ne sont pas valides';