From: Anthony Talarico Date: Wed, 9 Nov 2016 17:50:55 +0000 (-0500) Subject: testing jquery on click function outside of an each loop to tet ios functionality X-Git-Tag: v1.0.18^2~29 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=68b3fc05d84e2a75d24b1021f4d28618acda9f41;p=WP-Themes%2Ffrancejourneys.git testing jquery on click function outside of an each loop to tet ios functionality --- diff --git a/woocommerce.php b/woocommerce.php index dea933a..83b5c1e 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -277,13 +277,16 @@ jQuery(document).ready( function ($) { map_image_container = page.find( jQuery('.wine-image')), 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(){