Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opening-hours
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
regionalkauf
opening-hours
Commits
fd64692e
Commit
fd64692e
authored
Jun 17, 2015
by
Johannes Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming
parent
84607fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
index.js
index.js
+6
-3
No files found.
index.js
View file @
fd64692e
...
...
@@ -31,13 +31,16 @@ function getOHIndex(info, today, cb) {
})
}
function
get
OhView
(
info
,
now
,
cb
)
{
function
get
Full
(
info
,
now
,
cb
)
{
var
epocheSpan
=
dateView
.
getPropperEpochSpan
(
now
);
dateArray
(
epocheSpan
).
getData
(
info
,
function
(
err
,
dataObj
)
{
if
(
err
)
return
cb
(
null
,
err
);
var
short
=
dateView
.
asString
(
dataObj
,
now
);
var
res
=
{
threeMonth
:
dateView
.
threeMonth
(
dataObj
,
now
),
short
:
dateView
.
asString
(
dataObj
,
now
)
isOpen
:
short
.
isOpen
,
text
:
short
.
text
,
status
:
short
.
status
};
cb
(
null
,
res
);
})
...
...
@@ -54,7 +57,7 @@ function getShort(info, now, cb) {
module
.
exports
=
{
getOHIndex
:
getOHIndex
,
get
OhView
:
getOhView
,
get
Full
:
getFull
,
getShort
:
getShort
};
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