bug bei id
This commit is contained in:
parent
e8bcb38cca
commit
3d2dc1f6a8
|
|
@ -242,12 +242,9 @@
|
||||||
//Anlegen der Standarddateien
|
//Anlegen der Standarddateien
|
||||||
function rebuildingStandards(id){
|
function rebuildingStandards(id){
|
||||||
$("#cloud_process_standards").show();
|
$("#cloud_process_standards").show();
|
||||||
if(ncfiledata[0] == false)
|
ncfiledata[0] = ['standardid', id];
|
||||||
{
|
console.log("LOADING NC FILES");
|
||||||
|
$.ajax({
|
||||||
ncfiledata[0] = ['standardid', id];
|
|
||||||
console.log("LOADING NC FILES");
|
|
||||||
$.ajax({
|
|
||||||
url: "{% url 'api:apiswitchstandardsprepare' %}",
|
url: "{% url 'api:apiswitchstandardsprepare' %}",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -257,90 +254,41 @@
|
||||||
{
|
{
|
||||||
ncfiledata.push(data);
|
ncfiledata.push(data);
|
||||||
console.log(ncfiledata);
|
console.log(ncfiledata);
|
||||||
rebuildingStandards(id);
|
console.log("NC FILES LOADED, STARTING REBUILDING STANDARDS");
|
||||||
}
|
$.ajax({
|
||||||
});
|
url: "{% url 'api:apiswitchstandards' %}",
|
||||||
}
|
dataType: 'json',
|
||||||
else
|
data: JSON.stringify(ncfiledata),
|
||||||
{
|
success: function(data){
|
||||||
ncfiledata[0] = ['standardid', id];
|
if(data['status'] == "OK"){
|
||||||
console.log(ncfiledata);
|
standardcounter += 1;
|
||||||
console.log("NC FILES LOADED, STARTING REBUILDING STANDARDS");
|
if(standardcounter < standards.length){
|
||||||
$.ajax({
|
console.log("STANDARD " + id + " OK");
|
||||||
url: "{% url 'api:apiswitchstandards' %}",
|
rebuildingStandards(standards[standardcounter]);
|
||||||
dataType: 'json',
|
}
|
||||||
data: JSON.stringify(ncfiledata),
|
else{
|
||||||
success: function(data){
|
console.log("STANDARD " + id + " OK");
|
||||||
if(data['status'] == "OK"){
|
$("#migfinished").show();
|
||||||
standardcounter += 1;
|
}
|
||||||
if(standardcounter < standards.length){
|
|
||||||
console.log("STANDARD " + id + " OK");
|
|
||||||
rebuildingStandards(standards[standardcounter]);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("STANDARD " + id + " OK");
|
|
||||||
$("#migfinished").show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
standardcounter += 1;
|
|
||||||
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
|
|
||||||
if(standardcounter < standards.length){
|
|
||||||
rebuildingStandards(standards[standardcounter]);
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
standardcounter += 1;
|
||||||
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
|
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
|
||||||
$("#migfinished").show();
|
if(standardcounter < standards.length){
|
||||||
|
rebuildingStandards(standards[standardcounter]);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
|
||||||
|
$("#migfinished").show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
error: function(e){
|
||||||
|
console.log(e);
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
error: function(e){
|
|
||||||
console.log(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
$.ajax({
|
|
||||||
url: "{% url 'api:apiswitchstandards' %}",
|
|
||||||
dataType: 'json',
|
|
||||||
data: {
|
|
||||||
'standardid' : id,
|
|
||||||
},
|
|
||||||
success: function(data){
|
|
||||||
if(data['status'] == "OK"){
|
|
||||||
standardcounter += 1;
|
|
||||||
if(standardcounter < standards.length){
|
|
||||||
console.log("STANDARD " + id + " OK");
|
|
||||||
rebuildingStandards(standards[standardcounter]);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("STANDARD " + id + " OK");
|
|
||||||
$("#migfinished").show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
standardcounter += 1;
|
|
||||||
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
|
|
||||||
if(standardcounter < standards.length){
|
|
||||||
rebuildingStandards(standards[standardcounter]);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
console.log("FEHLER BEI STANDARD " + data['status'] + " ID " + id);
|
|
||||||
$("#migfinished").show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(e){
|
|
||||||
console.log(e);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue