Compare commits
No commits in common. "1503544a73c6b9596612a13cc48a04166ae72a78" and "67c84311577641992eea1572b26aa7b8bc3caeea" have entirely different histories.
1503544a73
...
67c8431157
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user