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
Nicholas J Anderson
whats-open
Commits
8a1da07c
Commit
8a1da07c
authored
Nov 24, 2013
by
Renfred Harper
Browse files
Fix bug that incorrectly assigned special schedules
parent
3399856a
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/grid.js
View file @
8a1da07c
...
...
@@ -67,8 +67,10 @@ function update_grid(restaurants) {
var
schedule
=
undefined
;
// If there exists a valid special schedule choose it.
$
.
each
(
restaurant
.
special_schedules
,
function
(
idx
,
special
)
{
if
(
day
>=
Date
.
parse
(
special
.
start
)
&&
day
<=
Date
.
parse
(
special
.
end
))
{
console
.
log
(
Date
.
parse
(
special
.
start
))
console
.
log
(
date
)
if
(
date
>=
Date
.
parse
(
special
.
start
)
&&
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