Changeset 39423
- Timestamp:
- 12/02/2016 06:33:25 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-content/themes/twentyseventeen/assets/js/navigation.js
r39232 r39423 7 7 8 8 (function( $ ) { 9 var masthead, menuToggle, siteNav igation;9 var masthead, menuToggle, siteNavContain, siteNavigation; 10 10 11 11 function initMainNavigation( container ) { … … 40 40 masthead = $( '#masthead' ); 41 41 menuToggle = masthead.find( '.menu-toggle' ); 42 siteNavContain = masthead.find( '.main-navigation' ); 42 43 siteNavigation = masthead.find( '.main-navigation > div > ul' ); 43 44 … … 54 55 55 56 menuToggle.on( 'click.twentyseventeen', function() { 56 $( siteNav igation.closest( '.main-navigation' ), this).toggleClass( 'toggled-on' );57 $( siteNavContain ).toggleClass( 'toggled-on' ); 57 58 58 59 $( this )
Note: See TracChangeset
for help on using the changeset viewer.