fixing clickable issues with the nav bar
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 11 Oct 2018 17:35:32 +0000 (13:35 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 11 Oct 2018 17:35:32 +0000 (13:35 -0400)
js/app.js
js/custom/pageSetup.js

index fbbcd24..4be7a9c 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -48,10 +48,7 @@ $(document).ready(function () {
     $(window).on("scroll", scrolled);
 
     var main_nav_top_level = $('.top-bar-section').children('ul').children('li.menu-item-has-children');
-    var main_nav_top_level_no_children = $('.top-bar-section').children('ul').children('li:not(.menu-item-has-children)');
-    main_nav_top_level_no_children.find('> a').on("click", function(event){
-        event.preventDefault();
-    });
+
     main_nav_top_level.each(function() {
         $(this).on("click",  function(event){
             var parentId = $(this).attr("id");
index 8c12837..613e7f0 100644 (file)
@@ -39,10 +39,7 @@ $(document).ready(function () {
     $(window).on("scroll", scrolled);
 
     var main_nav_top_level = $('.top-bar-section').children('ul').children('li.menu-item-has-children');
-    var main_nav_top_level_no_children = $('.top-bar-section').children('ul').children('li:not(.menu-item-has-children)');
-    main_nav_top_level_no_children.find('> a').on("click", function(event){
-        event.preventDefault();
-    });
+
     main_nav_top_level.each(function() {
         $(this).on("click",  function(event){
             var parentId = $(this).attr("id");