From fd09e631709c6a0dbc874a3e788c0912c5bbbb02 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 22 Jan 2016 16:28:08 -0500 Subject: [PATCH] testing hover function for ios --- js/app.js | 8 +++++--- js/custom/pageSetup.js | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) 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){ -- 2.17.1