From 84a16385c015b9b30c0fcae7d6df12bbde9b8b8e Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 11 Sep 2018 10:35:28 -0400 Subject: [PATCH] Gruntified js --- js/app.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/js/app.js b/js/app.js index f82bf8e..d51ac5d 100644 --- a/js/app.js +++ b/js/app.js @@ -41,24 +41,24 @@ $(document).ready(function () { }); if( $(window).width() > 786){ - //$('.manufacturer-brand').attr('data-options',"is_hover:true" ); + $('.manufacturer-brand').attr('data-options',"is_hover:true" ); $(document).foundation('dropdown', 'reflow'); }else{ - // $('.glm-rv-brand').each(function(){ - // let url = $(this).children('a').attr('href'); - // $(this).attr('data-url', url); - // }) - // $('.glm-rv-brand').on("click", function(){ - // window.location = $(this).data('url'); - // }) - // $('.manufacturer-brand').each(function(){ - // let url = $(this).children('a').attr('href'); - // if( $(this).children('ul').length <= 0 || $(this).children('ul').css("touch-action") === "manipulation"){ - // // $(this).attr('data-url', url); - // $(this).on("click", function(){ - // window.location = url; - // }) - // } - // }) + $('.glm-rv-brand').each(function(){ + let url = $(this).children('a').attr('href'); + $(this).attr('data-url', url); + }) + $('.glm-rv-brand').on("click", function(){ + window.location = $(this).data('url'); + }) + $('.manufacturer-brand').each(function(){ + let url = $(this).children('a').attr('href'); + if( $(this).children('ul').length <= 0 || $(this).children('ul').css("touch-action") === "manipulation"){ + // $(this).attr('data-url', url); + $(this).on("click", function(){ + window.location = url; + }) + } + }) } }); -- 2.17.1