Changeset 39419
- Timestamp:
- 12/02/2016 06:24:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/assets/js/navigation.js
r39232 r39419 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.