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
Commits
b966fda6
Commit
b966fda6
authored
7 months ago
by
Brita Linnestad
Browse files
Options
Downloads
Patches
Plain Diff
fix: Store startdate but not enddate
parent
941aa9ea
No related branches found
No related tags found
1 merge request
!23
fix: Store startdate but not enddate
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applefruitmoth/templates/applefruitmoth/index.html
+5
-7
5 additions, 7 deletions
applefruitmoth/templates/applefruitmoth/index.html
with
5 additions
and
7 deletions
applefruitmoth/templates/applefruitmoth/index.html
+
5
−
7
View file @
b966fda6
...
@@ -82,7 +82,6 @@
...
@@ -82,7 +82,6 @@
});
});
storeLocalSettings
(
userSettings
);
storeLocalSettings
(
userSettings
);
console
.
info
(
"
Store current user settings
"
,
userSettings
);
}
}
...
@@ -92,15 +91,15 @@
...
@@ -92,15 +91,15 @@
const
inputLatitudeElement
=
document
.
getElementById
(
"
latitude
"
);
const
inputLatitudeElement
=
document
.
getElementById
(
"
latitude
"
);
const
inputLongitudeElement
=
document
.
getElementById
(
"
longitude
"
);
const
inputLongitudeElement
=
document
.
getElementById
(
"
longitude
"
);
const
userSettingsFields
=
[
"
latitude
"
,
"
longitude
"
,
"
timezone
"
,
"
weatherStationId
"
];
const
userSettingsFields
=
[
"
latitude
"
,
"
longitude
"
,
"
timezone
"
,
"
weatherStationId
"
,
"
startdate
"
];
const
userSettingsRadios
=
[
"
weatherdataType
"
,
"
radioDays
"
];
const
userSettingsRadios
=
[
"
weatherdataType
"
,
"
radioDays
"
];
let
poiIdList
=
[]
let
poiIdList
=
[]
let
selectedPoint
=
null
;
let
selectedPoint
=
null
;
let
selectedFeature
=
undefined
;
let
selectedFeature
=
undefined
;
let
startDate
;
//
let startDate;
let
endDate
;
//
let endDate;
function
selectCoordinates
(
coordinatesData
)
{
function
selectCoordinates
(
coordinatesData
)
{
const
selectedLatitude
=
coordinatesData
?
coordinatesData
.
latitude
:
undefined
;
const
selectedLatitude
=
coordinatesData
?
coordinatesData
.
latitude
:
undefined
;
...
@@ -116,7 +115,6 @@
...
@@ -116,7 +115,6 @@
window
.
loadUserSettings
=
()
=>
{
window
.
loadUserSettings
=
()
=>
{
let
userSettings
=
getLocalSettings
(
getNameSpaced
(
"
{{ form_id }}
"
,
userSettingsFields
.
concat
(
userSettingsRadios
)),
false
);
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
// Settings found, render form and run model
if
(
Object
.
keys
(
userSettings
).
length
>
0
)
if
(
Object
.
keys
(
userSettings
).
length
>
0
)
...
@@ -144,8 +142,8 @@
...
@@ -144,8 +142,8 @@
}
}
window
.
onload
=
async
(
event
)
=>
{
window
.
onload
=
async
(
event
)
=>
{
startDate
=
document
.
getElementById
(
"
startdate
"
);
//
startDate = document.getElementById("startdate");
endDate
=
document
.
getElementById
(
"
endDate
"
);
//
endDate = document.getElementById("endDate");
await
applefruitMoth
.
renderWeatherstations
();
await
applefruitMoth
.
renderWeatherstations
();
loadUserSettings
()
loadUserSettings
()
runModel
();
runModel
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment