From 3c18df62610f2ed31ebdaa0c1a0340cbd444b142 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 24 Mar 2017 09:27:10 -0400 Subject: [PATCH] Update click handler for google links prevent default. --- js/front.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/front.js b/js/front.js index d65b41c..f0978b8 100644 --- a/js/front.js +++ b/js/front.js @@ -1,7 +1,7 @@ jQuery(document).ready(function($){ - $("a.google-map-link").on("click",function(){ + $("a.google-map-link").click(function(e){ + e.preventDefault(); var address = $(this).data('location'); window.open('https://maps.google.com/?q=' + address, '_blank'); - return false; }); }); -- 2.17.1