Compare commits
2 Commits
3323807e46
...
a75ba765df
Author | SHA1 | Date | |
---|---|---|---|
a75ba765df | |||
0b350d344d |
@ -189,11 +189,6 @@ function selectBoatChange() {
|
|||||||
|
|
||||||
inputElement.value = formattedDateTime;
|
inputElement.value = formattedDateTime;
|
||||||
|
|
||||||
const distinput = <HTMLInputElement>(
|
|
||||||
document.querySelector("#distance_in_km")
|
|
||||||
);
|
|
||||||
distinput.value = "";
|
|
||||||
|
|
||||||
const destinput = <HTMLInputElement>(
|
const destinput = <HTMLInputElement>(
|
||||||
document.querySelector("#destination")
|
document.querySelector("#destination")
|
||||||
);
|
);
|
||||||
@ -759,9 +754,11 @@ function addRelationMagic(bodyElement: HTMLElement) {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (option && option.value !== ""){
|
||||||
// Get distance
|
// Get distance
|
||||||
const distance = option.getAttribute("distance");
|
const distance = option.getAttribute("distance");
|
||||||
if (distance) relatedField.value = distance;
|
if (distance && relatedField.value === "") relatedField.value = distance;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user