From: Steve Sutton Date: Fri, 24 Mar 2017 13:27:10 +0000 (-0400) Subject: Update click handler for google links X-Git-Tag: v1.0.0^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3c18df62610f2ed31ebdaa0c1a0340cbd444b142;p=WP-Plugins%2Fglm-member-db-apis.git Update click handler for google links prevent default. --- 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; }); });