Commit 0427b4fe authored by Renfred Harper's avatar Renfred Harper

Hide bracketed restaurant info in info window

parent d6dff5a7
...@@ -44,8 +44,8 @@ $(document).ready(function() { ...@@ -44,8 +44,8 @@ $(document).ready(function() {
return false; return false;
} }
}); });
// Display restaurant info in the info-body // Display restaurant info in the info-body without bracketed locations
$('#info-name').text(restaurant.name); $('#info-name').text(restaurant.name.replace(/ ?\[(.+)\]/, ''));
if (restaurant.location !== null){ if (restaurant.location !== null){
$('#info-location').html('<b>Location:</b> ' + restaurant.location).show(); $('#info-location').html('<b>Location:</b> ' + restaurant.location).show();
} }
......
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