From: Anthony Talarico Date: Mon, 25 Jan 2016 13:35:16 +0000 (-0500) Subject: testing another jquery workaround for ios click X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=29ba2ba8c946832f601d96d464d539c5ff5efb68;p=WP-Themes%2Fglmthemes%2Fsaultstemarie-theme.git testing another jquery workaround for ios click --- diff --git a/js/app.js b/js/app.js index d0df26c..5dd380d 100644 --- a/js/app.js +++ b/js/app.js @@ -180,14 +180,13 @@ $(document).ready(function () { $("#departOff").val(minDays); } }); - $('#block-1, #block-2, #block-3').bind('click tap', function(){ - + $('#block-1, #block-2, #block-3').bind('click touchstart', function(){ + if($(window).width() <= 1024){ + $("#block-1, #block-2, #block-3").on("click", function () { + $(this).toggleClass('front-page-blocks'); + }); + } }); -// if($(window).width() <= 1024){ -// $("#block-1, #block-2, #block-3").on("click", function () { -// $(this).toggleClass('front-page-blocks'); -// }); -// } // if($(window).width() <= 1024){ diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 0d6f794..869b1ab 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -171,14 +171,13 @@ $(document).ready(function () { $("#departOff").val(minDays); } }); - $('#block-1, #block-2, #block-3').bind('click tap', function(){ - + $('#block-1, #block-2, #block-3').bind('click touchstart', function(){ + if($(window).width() <= 1024){ + $("#block-1, #block-2, #block-3").on("click", function () { + $(this).toggleClass('front-page-blocks'); + }); + } }); -// if($(window).width() <= 1024){ -// $("#block-1, #block-2, #block-3").on("click", function () { -// $(this).toggleClass('front-page-blocks'); -// }); -// } // if($(window).width() <= 1024){