$("#searchIcon").css("visibility", "visible");
});
-
+ var main_nav_top_level = $('.top-bar-section').children('ul').children('li.menu-item-has-children');
+
+ main_nav_top_level.each(function() {
+ $(this).on("click", function(event){
+ var parentId = $(this).attr("id");
+ var childId = $(event.target).parent().attr("id")
+ if( parentId === childId ){
+ event.stopPropagation();
+ event.preventDefault();
+ }
+ });
+ });
});;jQuery(function($){
if($(document).scrollTop() > 0){
$("#searchIcon").css("visibility", "visible");
});
-
+ var main_nav_top_level = $('.top-bar-section').children('ul').children('li.menu-item-has-children');
+
+ main_nav_top_level.each(function() {
+ $(this).on("click", function(event){
+ var parentId = $(this).attr("id");
+ var childId = $(event.target).parent().attr("id")
+ if( parentId === childId ){
+ event.stopPropagation();
+ event.preventDefault();
+ }
+ });
+ });
});
\ No newline at end of file