Skip to content
Snippets Groups Projects
Commit 8bd718b0 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

fix: run model on point data select when point is already defined. (VIPSUTV-848)

parent 2ecfd7e3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment