From ea66e0944a51dc1b245363f7e1ba74603e71bbc7 Mon Sep 17 00:00:00 2001 From: Andreas Moik Date: Thu, 17 Mar 2016 16:48:08 +0100 Subject: [PATCH] some comments added to the aliquote reduction --- vilesci/personen/aliquote_reduktion.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vilesci/personen/aliquote_reduktion.php b/vilesci/personen/aliquote_reduktion.php index e065f3119..3492f2c65 100644 --- a/vilesci/personen/aliquote_reduktion.php +++ b/vilesci/personen/aliquote_reduktion.php @@ -276,6 +276,7 @@ { var beginNeeded = needed; + //distribute the remainig applicants to the present ZGVs for(var i=0; i < zgvElems.length; i++) { for(var j in aqr.studenten) @@ -296,8 +297,10 @@ } } + //if we are finished or the ZGVs are full if(needed < 1 || beginNeeded == needed) { + //distribute the rest of the applicants, WITH a ZGV group for(var j in aqr.studenten) { if(!aqr.studenten[j].selected && aqr.studenten[j].bezeichnung) @@ -310,6 +313,7 @@ } } } + //distribute the rest of the applicants, WITHOUT a ZGV group for(var j in aqr.studenten) { if(!aqr.studenten[j].selected && !aqr.studenten[j].bezeichnung) @@ -323,7 +327,7 @@ } } if(needed > 0) - alert("Es werden mehr Studenten benötigt, als es Bewerber gibt!"); + alert("Es werden mehr Bewerber benötigt, als gibt!"); return; } else