- Timestamp:
- 12/05/2013 09:27:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/js/functions.js
r26574 r26691 57 57 $( function() { 58 58 // Search toggle. 59 $( '.search-toggle' ).on( 'click.twentyfourteen', function( ) {59 $( '.search-toggle' ).on( 'click.twentyfourteen', function( event ) { 60 60 var that = $( this ), 61 61 wrapper = $( '.search-box-wrapper' ); … … 64 64 wrapper.toggleClass( 'hide' ); 65 65 66 if ( that.is( '.active' ) ) {66 if ( that.is( '.active' ) || $( '.screen-reader-text' ) === event.target ) { 67 67 wrapper.find( '.search-field' ).focus(); 68 68 }
Note: See TracChangeset
for help on using the changeset viewer.