adding code to disable the off canvas main level nav items
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 1 Nov 2018 14:33:31 +0000 (10:33 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 1 Nov 2018 14:33:31 +0000 (10:33 -0400)
parts/dropdown-map.php
sections/off-canvas.php

index d66e265..f7729ea 100644 (file)
             // region_content.text(regions['regions']['content']);
             // region_link.attr("href", url);
         });
-
-        var main_nav_top_level_oc = $('.left-off-canvas-list').children('ul').children('li.menu-item-has-children');
-        main_nav_top_level_oc.each(function() {
-            $(this).on("click",  function(event){
-                let isParent = $(event.target).parent().hasClass("oc_parent");
-                if( isParent ){
-                    event.stopPropagation();
-                    event.preventDefault();
-                }
-            });
-        });
     });
 </script>
index 3c62b78..ef01ef4 100644 (file)
                     <!--
                     <aside class="right-off-canvas-menu">
 
-                    </aside>-->
\ No newline at end of file
+                    </aside>-->
+                    <script>
+                        jQuery(function($){
+                            console.log("asdf")
+                            var main_nav_top_level_oc = $('.left-off-canvas-list').children('ul').children('li.menu-item-has-children');
+                            main_nav_top_level_oc.each(function() {
+                                $(this).on("click",  function(event){
+                                    let isParent = $(event.target).parent().hasClass("oc_parent");
+                                    console.log(isParent);
+                                    if( isParent ){
+                                        
+                                        event.stopPropagation();
+                                        event.preventDefault();
+                                    }
+                                });
+                            });
+                        });
+                    </script>
\ No newline at end of file