projects
/
WP-Themes
/
petoskeyarea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24e260
)
fixing jquery syntax error in getting the data-id attr when clicking a map region
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 11 Aug 2016 14:01:07 +0000
(10:01 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 11 Aug 2016 14:01:07 +0000
(10:01 -0400)
parts/community-map.php
patch
|
blob
|
history
diff --git
a/parts/community-map.php
b/parts/community-map.php
index
4bc5af5
..
2317cc1
100644
(file)
--- a/
parts/community-map.php
+++ b/
parts/community-map.php
@@
-75,11
+75,9
@@
foreach ($nav_posts as $p){
});
console.log(site_array);
$(region).on("click", function (){
-
- window.location.href = site_array[$(this).getAttribute("data-id")];
+ window.location.href = site_array[$(this).attr("data-id")];
// window.location.href = 'https://www.google.com';
});
-
});
</script>