From affd028b47028b7d83ebcb58a36b92df113f07c7 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 24 Mar 2017 11:52:38 -0400 Subject: [PATCH] Add for the dev53 site to use map links Bring in the google map click event for dev53 site. --- views/front/apis/schedule.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/views/front/apis/schedule.html b/views/front/apis/schedule.html index 5bf63df..538be5b 100644 --- a/views/front/apis/schedule.html +++ b/views/front/apis/schedule.html @@ -14,6 +14,11 @@ } {/if} jQuery(document).ready(function(){ + $("a.google-map-link").click(function(e){ + e.preventDefault(); + var address = $(this).data('location'); + window.open('https://maps.google.com/?q=' + address, '_blank'); + }); {if $inDropDown} // For the drop down docks schedules var dropdown_dockForm = $("#dockForm"); -- 2.17.1