Skip to content
Permalink
Browse files

Make secnav selector less restrictive (menu.js)

Some systems (like Drupal) need to have divs wrapping the secondary menu ul element. This makes the selector less restrictive.
  • Loading branch information...
ptsimard committed Oct 1, 2015
1 parent 0168140 commit 1cc8fb211eba969174fc7bb3b8074abc2830fc8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/menu/menu.js
@@ -260,7 +260,7 @@ var componentName = "wb-menu",
// Add the secondary menu
if ( $secnav.length !== 0 ) {
allProperties.push( [
$secnav.find( "> ul > li > *:first-child" ).get(),
$secnav.find( "ul > li > *:first-child" ).get(),
"sec-pnl",
$secnav.find( "h2" ).html()
] );

0 comments on commit 1cc8fb2

Please sign in to comment.
You can’t perform that action at this time.