Compare commits

..

No commits in common. "a75ba765dfab87f4f0bb1814eb72f66928175118" and "3323807e4671629544990e1178da9aeecf2ac7cc" have entirely different histories.

View File

@ -189,6 +189,11 @@ function selectBoatChange() {
inputElement.value = formattedDateTime;
const distinput = <HTMLInputElement>(
document.querySelector("#distance_in_km")
);
distinput.value = "";
const destinput = <HTMLInputElement>(
document.querySelector("#destination")
);
@ -754,11 +759,9 @@ function addRelationMagic(bodyElement: HTMLElement) {
},
);
if (option && option.value !== ""){
// Get distance
const distance = option.getAttribute("distance");
if (distance && relatedField.value === "") relatedField.value = distance;
}
if (distance) relatedField.value = distance;
}
});
}