allow-scheckbuch-to-be-entered #476

Merged
philipp merged 4 commits from allow-scheckbuch-to-be-entered into staging 2024-05-01 19:37:11 +02:00
Showing only changes of commit a75ba765df - Show all commits

View File

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