Changeset 36999
- Timestamp:
- 03/15/2016 09:32:15 PM (9 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/js/functions.js
r33491 r36999 50 50 ( function() { 51 51 var menu, widgets, social; 52 if ( ! secondary || ! button) {52 if ( ! secondary.length || ! button.length ) { 53 53 return; 54 54 } … … 58 58 widgets = secondary.find( '#widget-area' ); 59 59 social = secondary.find( '#social-navigation' ); 60 if ( ! widgets.length && ! social.length && ( ! menu || ! menu.children().length ) ) {60 if ( ! widgets.length && ! social.length && ( ! menu.length || ! menu.children().length ) ) { 61 61 button.hide(); 62 62 return; -
trunk/src/wp-content/themes/twentyfourteen/js/functions.js
r31814 r36999 17 17 // Enable menu toggle for small screens. 18 18 ( function() { 19 if ( ! nav || ! button) {19 if ( ! nav.length || ! button.length ) { 20 20 return; 21 21 } 22 22 23 23 // Hide button if menu is missing or empty. 24 if ( ! menu || ! menu.children().length ) {24 if ( ! menu.length || ! menu.children().length ) { 25 25 button.hide(); 26 26 return; -
trunk/src/wp-content/themes/twentythirteen/js/functions.js
r31932 r36999 35 35 */ 36 36 ( function() { 37 if ( ! nav || ! button) {37 if ( ! nav.length || ! button.length ) { 38 38 return; 39 39 } 40 40 41 41 // Hide button if menu is missing or empty. 42 if ( ! menu || ! menu.children().length ) {42 if ( ! menu.length || ! menu.children().length ) { 43 43 button.hide(); 44 44 return;
Note: See TracChangeset
for help on using the changeset viewer.