Changeset 26691
- Timestamp:
- 12/05/2013 09:27:20 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r26689 r26691 263 263 } 264 264 265 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2013120 3', true );265 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20131205', true ); 266 266 } 267 267 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); -
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 } -
trunk/src/wp-content/themes/twentyfourteen/style.css
r26689 r26691 904 904 } 905 905 906 .search-toggle .screen-reader-text {907 right: 0; /* This makes sure a horizontal scrollbar won't appear */908 }909 910 906 911 907 /**
Note: See TracChangeset
for help on using the changeset viewer.