diff --git a/cydiapomonella/templates/cydiapomonella/index.html b/cydiapomonella/templates/cydiapomonella/index.html index 8ed303c8d310ccdb13e289305127044c604b7388..84fe0b581a815e9a6de6c59af77b8b057e535906 100644 --- a/cydiapomonella/templates/cydiapomonella/index.html +++ b/cydiapomonella/templates/cydiapomonella/index.html @@ -119,6 +119,12 @@ Created: 2024-10-28 document.getElementById('input-weatherstation').style.display="none"; document.getElementById('input-coordinates').style.display="block"; selectWeatherstationElement.selectedIndex = 0; + // If a point is already selected, run the model + if(! isNaN( parseFloat(inputLongitudeElement.value)) && ! isNaN( parseFloat(inputLatitudeElement.value))) + { + getTimezoneForPoint(inputLatitudeElement.value, inputLongitudeElement.value) + runModel(); + } } // Callback for coordinates map