Commit 292e3e29 authored by Renfred Harper's avatar Renfred Harper

Show restaurant location

parent 23815e54
......@@ -57,6 +57,12 @@ $(document).ready(function() {
});
// Display restaurant info in the info-body
$('#info-name').text(restaurant.name);
if (restaurant.location !== null){
$('#info-location').html('<b>Location:</b> ' + restaurant.location).show();
}
else {
$('#info-location').hide();
}
if (restaurant.open){
$('#info-status').html('<b>Status:</b> Open');
var closing = Date.parse(restaurant.current.end_time);
......
......@@ -58,6 +58,7 @@
<div class="col-md-12" id="info-name"></div>
<div class="col-md-3" id="info-status"></div>
<div class="col-md-3" id="info-next"></div>
<div class="col-md-3" id="info-location"></div>
<div id="info-schedule"></div>
</div>
</div>
......
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