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
Zoheb Lokhandwala
whats-open
Commits
d3d795e3
Commit
d3d795e3
authored
Nov 26, 2013
by
Renfred Harper
Browse files
Change special schedules to take place at 5am
parent
cdf228c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/grid.js
View file @
d3d795e3
...
...
@@ -67,7 +67,9 @@ function update_grid(restaurants) {
var
schedule
=
undefined
;
// If there exists a valid special schedule choose it.
$
.
each
(
restaurant
.
special_schedules
,
function
(
idx
,
special
)
{
if
(
date
>=
Date
.
parse
(
special
.
start
)
// Special schedules take effect after 5am on their start day
// to prevent collisions with the previous night's schedule
if
(
date
>=
Date
.
parse
(
special
.
start
).
setHours
(
5
,
0
,
0
,
0
)
&&
date
<=
Date
.
parse
(
special
.
end
))
{
schedule
=
special
;
}
...
...
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