Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stwkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
stwkit
Commits
1e9e0747
Commit
1e9e0747
authored
Oct 30, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obsdate fixes
parent
ea05d579
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/components/cards.js
src/components/cards.js
+3
-3
src/components/cards.js.map
src/components/cards.js.map
+1
-1
src/components/cards.ts
src/components/cards.ts
+3
-3
No files found.
src/components/cards.js
View file @
1e9e0747
...
@@ -589,9 +589,9 @@ var STWkit;
...
@@ -589,9 +589,9 @@ var STWkit;
PeriodCard
.
prototype
.
changeFn
=
function
(
changeCard
)
{
PeriodCard
.
prototype
.
changeFn
=
function
(
changeCard
)
{
var
self
=
this
;
var
self
=
this
;
if
((
typeof
changeCard
.
obsDateInput
!==
'
undefined
'
)
&&
(
typeof
changeCard
.
obsTimeInput
!==
'
undefined
'
))
{
if
((
typeof
changeCard
.
obsDateInput
!==
'
undefined
'
)
&&
(
typeof
changeCard
.
obsTimeInput
!==
'
undefined
'
))
{
self
.
obsdate
=
moment
.
utc
(
changeCard
.
obsDateInput
.
value
+
'
'
+
changeCard
.
obsTimeInput
.
value
,
self
.
datetimeFormat
)
;
self
.
startDateInput
=
changeCard
.
obsDateInput
.
value
;
if
(
document
.
body
.
contains
(
self
.
forwardButton
))
self
.
startTimeInput
=
changeCard
.
obsTimeInput
.
value
;
self
.
forwardButton
.
click
();
self
.
updateFromStartDate
();
}
}
};
};
PeriodCard
.
prototype
.
isDateValid
=
function
(
date
)
{
PeriodCard
.
prototype
.
isDateValid
=
function
(
date
)
{
...
...
src/components/cards.js.map
View file @
1e9e0747
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/cards.ts
View file @
1e9e0747
...
@@ -470,7 +470,6 @@ module STWkit {
...
@@ -470,7 +470,6 @@ module STWkit {
public
domain
:
string
;
public
domain
:
string
;
public
forcingmodel
:
string
;
public
forcingmodel
:
string
;
public
ready
:
boolean
;
public
ready
:
boolean
;
public
obsdate
:
any
;
constructor
(
id
,
title
,
parentDiv
,
lang
,
map
,
domain
,
forcingmodel
,
options
?)
{
constructor
(
id
,
title
,
parentDiv
,
lang
,
map
,
domain
,
forcingmodel
,
options
?)
{
...
@@ -652,8 +651,9 @@ module STWkit {
...
@@ -652,8 +651,9 @@ module STWkit {
public
changeFn
(
changeCard
)
{
public
changeFn
(
changeCard
)
{
var
self
=
this
;
var
self
=
this
;
if
((
typeof
changeCard
.
obsDateInput
!==
'
undefined
'
)
&&
(
typeof
changeCard
.
obsTimeInput
!==
'
undefined
'
))
{
if
((
typeof
changeCard
.
obsDateInput
!==
'
undefined
'
)
&&
(
typeof
changeCard
.
obsTimeInput
!==
'
undefined
'
))
{
self
.
obsdate
=
moment
.
utc
(
changeCard
.
obsDateInput
.
value
+
'
'
+
changeCard
.
obsTimeInput
.
value
,
self
.
datetimeFormat
);
self
.
startDateInput
=
changeCard
.
obsDateInput
.
value
;
if
(
document
.
body
.
contains
(
self
.
forwardButton
))
self
.
forwardButton
.
click
();
self
.
startTimeInput
=
changeCard
.
obsTimeInput
.
value
;
self
.
updateFromStartDate
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
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