projects
/
WP-Themes
/
visitbenzie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
354fd50
)
fixing click event to navigate to town page on map click
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 6 Sep 2018 13:59:27 +0000
(09:59 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 6 Sep 2018 13:59:27 +0000
(09:59 -0400)
parts/benzie-map.php
patch
|
blob
|
history
diff --git
a/parts/benzie-map.php
b/parts/benzie-map.php
index
8c58026
..
6617d13
100644
(file)
--- a/
parts/benzie-map.php
+++ b/
parts/benzie-map.php
@@
-69,8
+69,8
@@
$js_sites = json_encode($sites);
}
sites = <?php echo $js_sites ?>;
- $('
.town
').on('click', function(){
- id = $(this).
attr('id
');
+ $('
[data-town]
').on('click', function(){
+ id = $(this).
data('town
');
window.location = sites[id]['url'];
});
$('[data-town]').hover(