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
9b318507
Commit
9b318507
authored
Nov 26, 2013
by
Renfred Harper
Browse files
Lessen strict equality for null locations
parent
d3d795e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/info.js
View file @
9b318507
...
...
@@ -15,11 +15,11 @@ function compareTimes(time1, time2) {
function
dispalyInfo
(
restaurant
)
{
// Display restaurant info in the info-body without bracketed locations
$
(
'
#info-name
'
).
text
(
restaurant
.
name
.
replace
(
/
?\[(
.+
)\]
/
,
''
));
if
(
restaurant
.
location
!
==
null
)
{
$
(
'
#info-location
'
).
h
tml
(
'
<b>Location:</b>
'
+
restaurant
.
location
).
show
();
if
(
restaurant
.
location
==
''
)
{
$
(
'
#info-location
'
).
h
ide
();
}
else
{
$
(
'
#info-location
'
).
h
ide
();
$
(
'
#info-location
'
).
h
tml
(
'
<b>Location:</b>
'
+
restaurant
.
location
).
show
();
}
if
(
restaurant
.
open
){
$
(
'
#info-status
'
).
html
(
'
<b>Status:</b> Open
'
);
...
...
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