Changeset 31214
- Timestamp:
- 01/16/2015 07:16:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/js/functions.js
r31183 r31214 13 13 // Add dropdown toggle that display child menu items. 14 14 $( '.main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' ); 15 16 // Toggle buttons and submenu items with active children menu items. 17 $( '.main-navigation .current-menu-ancestor > button' ).addClass( 'toggle-on' ); 18 $( '.main-navigation .current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' ); 15 19 16 20 $( '.dropdown-toggle' ).click( function( e ) {
Note: See TracChangeset
for help on using the changeset viewer.