From 413e11b008fed8bc2f5ac8bcf5a169365cf581fd Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 11 Aug 2016 10:01:07 -0400 Subject: [PATCH] fixing jquery syntax error in getting the data-id attr when clicking a map region --- parts/community-map.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/parts/community-map.php b/parts/community-map.php index 4bc5af5..2317cc1 100644 --- 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'; }); - }); -- 2.17.1