Only disable top-level items in off-canvas if their child UL has 'children' class
authorLaury GvR <laury@gaslightmedia.com>
Tue, 19 Feb 2019 19:07:47 +0000 (14:07 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 19 Feb 2019 19:07:47 +0000 (14:07 -0500)
js/app.js
js/custom/offCanvas.js

index 33d89d3..ffbfba2 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -45,7 +45,7 @@ var g=a(f(this.selector(c),a("<div></div>").html(c.attr("title")).html())),h=thi
         menuThis.on("click", function(){
             other_menu = $(this).closest('ul.sub-menu-section').siblings('ul.sub-menu-section').not(".oc-home-link");
         })
-        if( $(this).children('ul').length > 0 ){
+        if( $(this).children('ul.children').length > 0 ){
             let menuParent = $(this).parent();
             $(this).on("click", function(e){
                 if( $(this).parent().hasClass('sub-menu-section') ){
index b4d16e9..3c88223 100644 (file)
@@ -15,7 +15,7 @@ jQuery(function($){
         menuThis.on("click", function(){
             other_menu = $(this).closest('ul.sub-menu-section').siblings('ul.sub-menu-section').not(".oc-home-link");
         })
-        if( $(this).children('ul').length > 0 ){
+        if( $(this).children('ul.children').length > 0 ){
             let menuParent = $(this).parent();
             $(this).on("click", function(e){
                 if( $(this).parent().hasClass('sub-menu-section') ){