From e8431943d8845774e16871083a5d4c131bd9387f Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 1 Nov 2018 10:33:31 -0400 Subject: [PATCH] adding code to disable the off canvas main level nav items --- parts/dropdown-map.php | 11 ----------- sections/off-canvas.php | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/parts/dropdown-map.php b/parts/dropdown-map.php index d66e265..f7729ea 100644 --- a/parts/dropdown-map.php +++ b/parts/dropdown-map.php @@ -138,16 +138,5 @@ // 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(); - } - }); - }); }); diff --git a/sections/off-canvas.php b/sections/off-canvas.php index 3c62b78..ef01ef4 100644 --- a/sections/off-canvas.php +++ b/sections/off-canvas.php @@ -33,4 +33,21 @@ \ No newline at end of file + --> + \ No newline at end of file -- 2.17.1