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

git-svn-id: http://core.svn.wordpress.org/trunk@21557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2012-08-20 19:14:51 +00:00
parent 2155ac1e31
commit 18e747d029
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() {