Commit d0f8a41f authored by Renfred Harper's avatar Renfred Harper
Browse files

Add class to no results found

parent 8e864b42
...@@ -14,7 +14,7 @@ function construct_grid(filtered_restaurants) { ...@@ -14,7 +14,7 @@ function construct_grid(filtered_restaurants) {
$('#grid').empty(); $('#grid').empty();
$('#grid').html('<div class="row"></div>'); $('#grid').html('<div class="row"></div>');
if (filtered_restaurants.length == 0) { if (filtered_restaurants.length == 0) {
$('#grid').append('<span class="col-md-2 offset5">No results found.</span>'); $('#grid').append('<span class="col-md-2 offset5" id="no-results">No results found.</span>');
return; return;
} }
sorted_restaurants = sort_restaurants(filtered_restaurants); sorted_restaurants = sort_restaurants(filtered_restaurants);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment