From: Anthony Talarico Date: Wed, 9 Nov 2016 17:53:04 +0000 (-0500) Subject: undoing last change and reverting back to each loop to apply on click functionality... X-Git-Tag: v1.0.18^2~28 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=485192de603f171399fb10d1c67f4fabc6b44fc3;p=WP-Themes%2Ffrancejourneys.git undoing last change and reverting back to each loop to apply on click functionality to the micro regions map --- 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(){