Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
f212ef0a
Commit
f212ef0a
authored
Feb 13, 2017
by
mdsecurity
Browse files
fixing isOpen()
parent
714923bb
Changes
2
Show whitespace changes
Inline
Side-by-side
src/app/place.ts
View file @
f212ef0a
...
...
@@ -28,7 +28,12 @@ export class Place {
for
(
let
i
=
0
;
i
<
this
.
main_schedule_times
.
length
;
i
++
)
{
const
day
=
this
.
main_schedule_times
[
i
];
if
(
day
.
start_day
===
dayOfWeek
||
day
.
end_day
===
dayOfWeek
+
1
)
{
if
(
day
.
start_day
===
dayOfWeek
&&
day
.
end_day
===
dayOfWeek
)
{
if
(
day
.
end_time
.
inSeconds
()
>
inSeconds
)
{
return
true
;
}
}
if
(
day
.
end_day
===
dayOfWeek
)
{
if
(
day
.
end_time
.
inSeconds
()
>
inSeconds
)
{
return
true
;
}
...
...
tslint.json
View file @
f212ef0a
...
...
@@ -16,7 +16,7 @@
"import-spacing"
:
true
,
"indent"
:
[
true
,
"
space
s"
"
tab
s"
],
"interface-over-type-literal"
:
true
,
"label-position"
:
true
,
...
...
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