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
6b2cdd44
Commit
6b2cdd44
authored
Feb 12, 2018
by
Pettersson Tomas
Browse files
adjusted changefn
parent
f36819ac
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/cards.js
View file @
6b2cdd44
...
...
@@ -614,10 +614,10 @@ var STWkit;
self
.
startTimeInput
.
value
=
changeCard
.
obsTimeInput
.
value
;
self
.
updateFromStartDate
();
}
if
((
typeof
changeCard
.
to
!==
'
undefined
'
))
{
if
(
changeCard
.
to
.
isBefore
(
self
.
minDate
)
||
changeCard
.
to
.
isAfter
(
self
.
maxDate
))
if
((
typeof
changeCard
.
update
to
!==
'
undefined
'
))
{
if
(
changeCard
.
update
to
.
isBefore
(
self
.
minDate
)
||
changeCard
.
update
to
.
isAfter
(
self
.
maxDate
))
return
;
self
.
to
=
changeCard
.
to
.
clone
();
self
.
to
=
changeCard
.
update
to
.
clone
();
self
.
adjustDateToRange
();
self
.
updateSlider
();
if
(
self
.
ready
)
...
...
src/components/cards.js.map
View file @
6b2cdd44
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
6b2cdd44
...
...
@@ -676,9 +676,9 @@ module STWkit {
self
.
startTimeInput
.
value
=
changeCard
.
obsTimeInput
.
value
;
self
.
updateFromStartDate
();
}
if
((
typeof
changeCard
.
to
!==
'
undefined
'
))
{
if
(
changeCard
.
to
.
isBefore
(
self
.
minDate
)
||
changeCard
.
to
.
isAfter
(
self
.
maxDate
))
return
;
self
.
to
=
changeCard
.
to
.
clone
();
if
((
typeof
changeCard
.
update
to
!==
'
undefined
'
))
{
if
(
changeCard
.
update
to
.
isBefore
(
self
.
minDate
)
||
changeCard
.
update
to
.
isAfter
(
self
.
maxDate
))
return
;
self
.
to
=
changeCard
.
update
to
.
clone
();
self
.
adjustDateToRange
();
self
.
updateSlider
();
if
(
self
.
ready
)
self
.
validate
();
...
...
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