Compare commits

..

No commits in common. "1503544a73c6b9596612a13cc48a04166ae72a78" and "67c84311577641992eea1572b26aa7b8bc3caeea" have entirely different histories.

View File

@ -189,6 +189,11 @@ 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")
); );
@ -754,11 +759,9 @@ 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 === "") relatedField.value = distance; if (distance) relatedField.value = distance;
}
} }
}); });
} }