From 29ba2ba8c946832f601d96d464d539c5ff5efb68 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 25 Jan 2016 08:35:16 -0500 Subject: [PATCH] testing another jquery workaround for ios click --- js/app.js | 13 ++++++------- js/custom/pageSetup.js | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) 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){ -- 2.17.1