Update click handler for google links
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 24 Mar 2017 13:27:10 +0000 (09:27 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 24 Mar 2017 13:27:10 +0000 (09:27 -0400)
prevent default.

js/front.js

index d65b41c..f0978b8 100644 (file)
@@ -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;
     });
 });