projects
/
WP-Plugins
/
glm-member-db-apis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99132f3
)
Update click handler for google links
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 24 Mar 2017 13:27:10 +0000
(09:27 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Fri, 24 Mar 2017 13:27:10 +0000
(09:27 -0400)
prevent default.
js/front.js
patch
|
blob
|
history
diff --git
a/js/front.js
b/js/front.js
index
d65b41c
..
f0978b8
100644
(file)
--- 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;
});
});