diff --git a/applefruitmoth/templates/applefruitmoth/index.html b/applefruitmoth/templates/applefruitmoth/index.html index 5416c0da15edc8e72f5d402959db9aa0042edc06..5e7cf53821034597feb429b9c4821b54cb750fa0 100755 --- a/applefruitmoth/templates/applefruitmoth/index.html +++ b/applefruitmoth/templates/applefruitmoth/index.html @@ -82,7 +82,6 @@ }); storeLocalSettings(userSettings); - console.info("Store current user settings", userSettings); } @@ -92,15 +91,15 @@ const inputLatitudeElement = document.getElementById("latitude"); const inputLongitudeElement = document.getElementById("longitude"); - const userSettingsFields = ["latitude","longitude","timezone","weatherStationId"]; + const userSettingsFields = ["latitude","longitude","timezone","weatherStationId","startdate"]; const userSettingsRadios = ["weatherdataType","radioDays"]; let poiIdList = [] let selectedPoint = null; let selectedFeature = undefined; - let startDate; - let endDate; + //let startDate; + //let endDate; function selectCoordinates(coordinatesData) { const selectedLatitude = coordinatesData ? coordinatesData.latitude : undefined; @@ -116,7 +115,6 @@ window.loadUserSettings = () => { let userSettings = getLocalSettings(getNameSpaced("{{ form_id }}",userSettingsFields.concat(userSettingsRadios)), false); - console.info("User settings available when page is loaded", userSettings) // Settings found, render form and run model if(Object.keys(userSettings).length > 0) @@ -144,8 +142,8 @@ } window.onload = async(event) => { - startDate = document.getElementById("startdate"); - endDate = document.getElementById("endDate"); + //startDate = document.getElementById("startdate"); + //endDate = document.getElementById("endDate"); await applefruitMoth.renderWeatherstations(); loadUserSettings() runModel();