Further console test echos to identify the problem
authorLaury GvR <laury@gaslightmedia.com>
Tue, 28 Aug 2018 19:21:06 +0000 (15:21 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 28 Aug 2018 19:21:06 +0000 (15:21 -0400)
js/app.js
js/custom/pageSetup.js

index a320851..a72a9be 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -36,11 +36,13 @@ $(document).ready(function () {
         metasliderThumbs.appendTo(".slider-wrapper");
     });
 
-    
+    console.log("Test0");
     if( $(window).width() > 786){
+        console.log("Test1a");
         $('.manufacturer-brand').attr('data-options',"is_hover:true" );
         $(document).foundation('dropdown', 'reflow');
     }else{
+        console.log("Test1b");
         $('.glm-rv-brand').each(function(){
             let url = $(this).children('a').attr('href');
             $(this).attr('data-url', url);
@@ -48,7 +50,9 @@ $(document).ready(function () {
         $('.glm-rv-brand').on("click", function(){
             window.location = $(this).data('url');
         })
+        console.log("Test2");
         $('.manufacturer-brand').each(function(){
+            console.log("Test3");
             let url = $(this).children('a').attr('href');
             console.log($(this));
             console.log("Length of children:");
index 8c7fcca..f71a0a6 100644 (file)
@@ -27,11 +27,13 @@ $(document).ready(function () {
         metasliderThumbs.appendTo(".slider-wrapper");
     });
 
-    
+    console.log("Test0");
     if( $(window).width() > 786){
+        console.log("Test1a");
         $('.manufacturer-brand').attr('data-options',"is_hover:true" );
         $(document).foundation('dropdown', 'reflow');
     }else{
+        console.log("Test1b");
         $('.glm-rv-brand').each(function(){
             let url = $(this).children('a').attr('href');
             $(this).attr('data-url', url);
@@ -39,7 +41,9 @@ $(document).ready(function () {
         $('.glm-rv-brand').on("click", function(){
             window.location = $(this).data('url');
         })
+        console.log("Test2");
         $('.manufacturer-brand').each(function(){
+            console.log("Test3");
             let url = $(this).children('a').attr('href');
             console.log($(this));
             console.log("Length of children:");