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
Commits
cdf228c1
Commit
cdf228c1
authored
Nov 25, 2013
by
Renfred Harper
Browse files
Set resturants without opentimes to closed
parent
b4470d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/grid.js
View file @
cdf228c1
...
...
@@ -76,8 +76,11 @@ function update_grid(restaurants) {
if
(
schedule
===
undefined
)
{
schedule
=
restaurant
.
main_schedule
;
}
restaurant
.
current_schedule
=
schedule
;
// Open the restaurants that are open, leave the rest closed.
if
(
schedule
.
open_times
.
length
===
0
)
{
restaurant
.
open
=
false
;
}
restaurant
.
current_schedule
=
schedule
;
$
.
each
(
schedule
.
open_times
,
function
(
idx
,
time
)
{
var
start_day
=
time
.
start_day
;
var
end_day
=
time
.
end_day
;
...
...
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