From: laury Date: Tue, 11 Sep 2018 14:35:04 +0000 (-0400) Subject: Returning the original JS for the brand dropdowns X-Git-Tag: v1.0.26^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2bb6b14dc223faab0897824354d41e0126908ede;p=WP-Themes%2Fbrewbakers.git Returning the original JS for the brand dropdowns --- diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 9a20a60..eefc93f 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -32,24 +32,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; + }) + } + }) } }); diff --git a/parts/manufacturers.php b/parts/manufacturers.php index 8757505..49d180b 100644 --- a/parts/manufacturers.php +++ b/parts/manufacturers.php @@ -26,7 +26,7 @@ unset($manufacturers['RV Classes']); } } ?> -
  • +
  • url){ ?> @@ -34,6 +34,19 @@ unset($manufacturers['RV Classes']); ID); ?> url){ ?> + - + + + +