From 485192de603f171399fb10d1c67f4fabc6b44fc3 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 9 Nov 2016 12:53:04 -0500 Subject: [PATCH] undoing last change and reverting back to each loop to apply on click functionality to the micro regions map --- woocommerce.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/woocommerce.php b/woocommerce.php index 83b5c1e..f740a14 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -278,15 +278,13 @@ jQuery(document).ready( function ($) { map_title = page.find( jQuery('.wine-title')), map_image = page.find( jQuery('.wine-img')); - $('.alsace').on('click', function(){ - window.location.href = map['alsace']['url']; - }); + jQuery.each(regions, function(index, value){ // region click page re-direction -// jQuery("." + value).on("click", function(){ -// window.location.href = map[value]['url']; -// }); + jQuery("." + value).on("click", function(){ + window.location.href = map[value]['url']; + }); // hover effects jQuery("." + value).mouseover( function(){ -- 2.17.1