v0.11.1a - Maybe fix?
This commit is contained in:
parent
4a64d49902
commit
f2500730ec
|
@ -174,11 +174,7 @@
|
||||||
//Fill locations
|
//Fill locations
|
||||||
fillLocations(data["locations"], location_id);
|
fillLocations(data["locations"], location_id);
|
||||||
|
|
||||||
//Fill washing-machines
|
updateForm();
|
||||||
fillMachines(data["washingmachines"], machine_id);
|
|
||||||
|
|
||||||
//Fill events (times) and remove unavailable_times
|
|
||||||
fillTimes(data["unavailable_times"], datetext, date);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -361,7 +357,7 @@
|
||||||
|
|
||||||
//Update selects
|
//Update selects
|
||||||
function updateForm() {
|
function updateForm() {
|
||||||
//console.log("Updating form...");
|
console.log("Updating form...");
|
||||||
var location_id;
|
var location_id;
|
||||||
var machine_id;
|
var machine_id;
|
||||||
|
|
||||||
|
@ -372,7 +368,7 @@
|
||||||
else
|
else
|
||||||
location_id = 0;
|
location_id = 0;
|
||||||
|
|
||||||
//console.log("location_id: " + location_id);
|
console.log("location_id: " + location_id);
|
||||||
|
|
||||||
//If a washing-machine select exists, set machine_id to its currently selected options value
|
//If a washing-machine select exists, set machine_id to its currently selected options value
|
||||||
//Else set it to 0
|
//Else set it to 0
|
||||||
|
@ -399,7 +395,7 @@
|
||||||
else
|
else
|
||||||
machine_id = 0;
|
machine_id = 0;
|
||||||
|
|
||||||
//console.log("machine_id: " + machine_id);
|
console.log("machine_id: " + machine_id);
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
@ -410,7 +406,7 @@
|
||||||
var data = response.data;
|
var data = response.data;
|
||||||
|
|
||||||
//Fill events (times) and remove unavailable_times
|
//Fill events (times) and remove unavailable_times
|
||||||
fillTimes(data["unavailable_times"], dateText);
|
fillTimes(data["unavailable_times"], dateText, momentDate);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue