Twenty Twelve: re-implement the hiding of toggle element when empty menu is present, see #21562 and r21520 props cfinke.

git-svn-id: https://develop.svn.wordpress.org/trunk@21557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2012-08-20 19:14:51 +00:00
parent 9bdc159632
commit 35ad2034b2
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@
*/
jQuery( document ).ready( function( $ ) {
if ( $( '#masthead .menu' ).children().length ) {
$( '#masthead h3.assistive-text' ).addClass( 'menu-toggle' );
if ( ! $( '#masthead .menu' ).children().length ) {
$( '#masthead .menu-toggle' ).hide();
}
$( '.menu-toggle' ).off( 'click' ).click( function() {