Gruntified js
authorLaury GvR <laury@gaslightmedia.com>
Tue, 11 Sep 2018 14:35:28 +0000 (10:35 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 11 Sep 2018 14:35:28 +0000 (10:35 -0400)
js/app.js

index f82bf8e..d51ac5d 100644 (file)
--- 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;
+                })
+            }
+        })
     }
 });