Skip to content
Snippets Groups Projects
Commit 7f9b0a3d authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Make sure grid weather data is initially checked

parent 49a00363
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@
document.getElementById('input-coordinates').style.display="none";
}
window.displayCoordinatesInput = (id) => {
window.displayCoordinatesInput = () => {
document.getElementById("grid").checked = true;
document.getElementById('input-weatherstation').style.display="none";
document.getElementById('input-coordinates').style.display="block";
......@@ -620,6 +620,8 @@
} else {
displayCoordinatesInput();
}
} else {
displayCoordinatesInput();
}
}).catch(function(error) {
console.error("Error initializing data:", error);
......
......@@ -405,6 +405,7 @@
}
else
{
displayCoordinatesInput();
updateGSDates();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment