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
Christopher M Reffett
whats-open
Commits
a5eedf3d
Commit
a5eedf3d
authored
Sep 18, 2013
by
Renfred Harper
Browse files
Make footer show when no search results are found
parent
e0dfe47c
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/grid.js
View file @
a5eedf3d
...
...
@@ -15,6 +15,7 @@ function construct_grid(filtered_restaurants) {
$
(
'
#grid
'
).
html
(
'
<div class="row"></div>
'
);
if
(
filtered_restaurants
.
length
==
0
)
{
$
(
'
#grid
'
).
append
(
'
<span class="col-md-2 offset5" id="no-results">No results found.</span>
'
);
$
(
'
#footer
'
).
show
();
return
;
}
sorted_restaurants
=
sort_restaurants
(
filtered_restaurants
);
...
...
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