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

log: Add debug logging

parent 7f9b0a3d
Branches
No related tags found
No related merge requests found
......@@ -215,6 +215,8 @@
const theForm = document.getElementById("{{ form_id }}");
const inputLatitudeElement = document.getElementById("latitude");
const inputLongitudeElement = document.getElementById("longitude");
const radioGrid = document.getElementById("grid")
const radioWeatherstation = document.getElementById("weatherstation")
const selectWeatherstationElement = document.getElementById("weatherStationId");
let poiIdList = []
......@@ -315,13 +317,15 @@
}
window.displayWeatherstationInput = () => {
document.getElementById("weatherstation").checked = true;
radioWeatherstation.checked = true;
console.error("Check radioWeatherstation!")
document.getElementById('input-weatherstation').style.display="block";
document.getElementById('input-coordinates').style.display="none";
}
window.displayCoordinatesInput = () => {
document.getElementById("grid").checked = true;
radioGrid.checked = true;
console.error("Check radioGrid!")
document.getElementById('input-weatherstation').style.display="none";
document.getElementById('input-coordinates').style.display="block";
getTimezoneForSelectedPoint()
......@@ -612,6 +616,7 @@
var userSettings = getLocalSettings(getNameSpaced("{{ form_id }}",formFields), false);
if(!isDictEmpty(userSettings)) {
console.error("Found previously stored usersettings", userSettings);
renderUserSettings(userSettings);
if(theForm["weatherDataSourceType"].value == "grid") {
displayCoordinatesInput();
......@@ -621,6 +626,7 @@
displayCoordinatesInput();
}
} else {
console.error("Found no previously stored usersettings");
displayCoordinatesInput();
}
}).catch(function(error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment