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:
parent
2155ac1e31
commit
18e747d029
|
@ -5,8 +5,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
jQuery( document ).ready( function( $ ) {
|
jQuery( document ).ready( function( $ ) {
|
||||||
if ( $( '#masthead .menu' ).children().length ) {
|
if ( ! $( '#masthead .menu' ).children().length ) {
|
||||||
$( '#masthead h3.assistive-text' ).addClass( 'menu-toggle' );
|
$( '#masthead .menu-toggle' ).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
$( '.menu-toggle' ).off( 'click' ).click( function() {
|
$( '.menu-toggle' ).off( 'click' ).click( function() {
|
||||||
|
|
Loading…
Reference in New Issue