array wahnsinn

This commit is contained in:
Holger Trampe 2021-10-23 12:26:57 +02:00
parent 93ca2894dd
commit 760f33dbed
1 changed files with 5 additions and 1 deletions

View File

@ -241,7 +241,7 @@
var ncfiledata = []; var ncfiledata = [];
//Anlegen der Standarddateien //Anlegen der Standarddateien
function rebuildingStandards(id){ function rebuildingStandards(id){
var ncfiledata = []; ncfiledata = [];
$("#cloud_process_standards").show(); $("#cloud_process_standards").show();
ncfiledata[0] = ['standardid', id]; ncfiledata[0] = ['standardid', id];
console.log("LOADING NC FILES"); console.log("LOADING NC FILES");
@ -265,9 +265,11 @@
standardcounter += 1; standardcounter += 1;
if(standardcounter < standards.length){ if(standardcounter < standards.length){
console.log("STANDARD " + id + " OK"); console.log("STANDARD " + id + " OK");
ncfiledata = [];
rebuildingStandards(standards[standardcounter]); rebuildingStandards(standards[standardcounter]);
} }
else{ else{
ncfiledata = [];
console.log("STANDARD " + id + " OK"); console.log("STANDARD " + id + " OK");
$("#migfinished").show(); $("#migfinished").show();
} }
@ -276,9 +278,11 @@
standardcounter += 1; standardcounter += 1;
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id); console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
if(standardcounter < standards.length){ if(standardcounter < standards.length){
ncfiledata = [];
rebuildingStandards(standards[standardcounter]); rebuildingStandards(standards[standardcounter]);
} }
else{ else{
ncfiledata = [];
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id); console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
$("#migfinished").show(); $("#migfinished").show();
} }