Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSWeb
Merge requests
!23
fix: Store startdate but not enddate
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: Store startdate but not enddate
UpdateRognebærmøll
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Brita Linnestad
requested to merge
UpdateRognebærmøll
into
develop
6 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
b966fda6
Show latest version
1 file
+
5
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b966fda6
fix: Store startdate but not enddate
· b966fda6
Brita Linnestad
authored
6 months ago
applefruitmoth/templates/applefruitmoth/index.html
+
5
−
7
Options
@@ -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
();
Loading