From: Anthony Talarico Date: Fri, 22 Jan 2016 21:28:08 +0000 (-0500) Subject: testing hover function for ios X-Git-Tag: v1.0.0^2~123 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fd09e631709c6a0dbc874a3e788c0912c5bbbb02;p=WP-Themes%2Fsaultstemarie.git testing hover function for ios --- diff --git a/js/app.js b/js/app.js index a9ede56..e102c31 100644 --- a/js/app.js +++ b/js/app.js @@ -182,9 +182,11 @@ $(document).ready(function () { }); $('#block-1, #block-2, #block-3').bind('touchstart', function(){ - if($("#block-1").is(":hover")){ - alert("test"); - } + $('#block-1, #block-2, #block-3').on("click", function ()){ + if($("#block-1").is(":hover")){ + alert("test"); + } + }); }); // if($(window).width() <= 1024){ diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 36de4a9..f291170 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -173,9 +173,11 @@ $(document).ready(function () { }); $('#block-1, #block-2, #block-3').bind('touchstart', function(){ - if($("#block-1").is(":hover")){ - alert("test"); - } + $('#block-1, #block-2, #block-3').on("click", function ()){ + if($("#block-1").is(":hover")){ + alert("test"); + } + }); }); // if($(window).width() <= 1024){