v0.10.7b - Fixed washing_reservation creation on app, hopefully forever
This commit is contained in:
parent
abd9ebbe3e
commit
2430a6a381
|
@ -343,7 +343,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;
|
||||||
|
|
||||||
|
@ -354,7 +354,14 @@
|
||||||
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
|
||||||
|
//Else set it to 0
|
||||||
|
if(document.getElementById('washing-machines') !== null)
|
||||||
|
machine_id = document.getElementById('washing-machines').value;
|
||||||
|
else
|
||||||
|
machine_id = 0;
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
@ -374,7 +381,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',
|
||||||
|
|
Loading…
Reference in New Issue