Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
stwkit
Commits
cd02bb58
Commit
cd02bb58
authored
Oct 30, 2017
by
Tomas Pettersson
🏸
Browse files
obsdate change fix
parent
1b43a570
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/cards.js
View file @
cd02bb58
...
...
@@ -611,7 +611,9 @@ var STWkit;
PeriodCard
.
prototype
.
changeFn
=
function
(
changeCard
)
{
var
self
=
this
;
if
((
typeof
changeCard
.
obsDateInput
!==
'
undefined
'
)
&&
(
typeof
changeCard
.
obsTimeInput
!==
'
undefined
'
))
{
self
.
obsdate
=
moment
.
utc
(
changeCard
.
obsDateInput
.
value
+
'
'
+
changeCard
.
obsTimeInput
.
value
,
self
.
datetimeFormat
).
valueOf
();
self
.
obsdate
=
moment
.
utc
(
changeCard
.
obsDateInput
.
value
+
'
'
+
changeCard
.
obsTimeInput
.
value
,
self
.
datetimeFormat
);
self
.
adjustDateToRange
();
self
.
updateSlider
();
}
};
PeriodCard
.
prototype
.
isDateValid
=
function
(
date
)
{
...
...
src/components/cards.js.map
View file @
cd02bb58
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
cd02bb58
...
...
@@ -674,7 +674,9 @@ module STWkit {
public
changeFn
(
changeCard
)
{
var
self
=
this
;
if
((
typeof
changeCard
.
obsDateInput
!==
'
undefined
'
)
&&
(
typeof
changeCard
.
obsTimeInput
!==
'
undefined
'
))
{
self
.
obsdate
=
moment
.
utc
(
changeCard
.
obsDateInput
.
value
+
'
'
+
changeCard
.
obsTimeInput
.
value
,
self
.
datetimeFormat
).
valueOf
();
self
.
obsdate
=
moment
.
utc
(
changeCard
.
obsDateInput
.
value
+
'
'
+
changeCard
.
obsTimeInput
.
value
,
self
.
datetimeFormat
);
self
.
adjustDateToRange
();
self
.
updateSlider
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment