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