diff --git a/website/static/js/info.js b/website/static/js/info.js index 72e98632752457cae9783ce57c5588d6e620b966..a01aa241b3d90b0c7c260e1a8e9240410347e413 100644 --- a/website/static/js/info.js +++ b/website/static/js/info.js @@ -44,8 +44,8 @@ $(document).ready(function() { return false; } }); - // Display restaurant info in the info-body - $('#info-name').text(restaurant.name); + // Display restaurant info in the info-body without bracketed locations + $('#info-name').text(restaurant.name.replace(/ ?\[(.+)\]/, '')); if (restaurant.location !== null){ $('#info-location').html('Location: ' + restaurant.location).show(); }