v0.10.7b - Fixed washing_reservation creation on app, hopefully forever

This commit is contained in:
frederikpyt 2020-08-18 22:55:50 +02:00
parent abd9ebbe3e
commit 2430a6a381
1 changed files with 10 additions and 3 deletions

View File

@ -343,7 +343,7 @@
//Update selects
function updateForm() {
console.log("Updating form...");
//console.log("Updating form...");
var location_id;
var machine_id;
@ -354,7 +354,14 @@
else
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
//Else set it to 0
if(document.getElementById('washing-machines') !== null)
machine_id = document.getElementById('washing-machines').value;
else
machine_id = 0;
axios({
method: 'get',
@ -374,7 +381,7 @@
else
machine_id = 0;
console.log("machine_id: " + machine_id);
//console.log("machine_id: " + machine_id);
axios({
method: 'get',