mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Twenty Fourteen: Focus search box on search menu click, props kovshenin for original patch. Fixes #24895.
git-svn-id: https://develop.svn.wordpress.org/trunk@25064 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -213,7 +213,7 @@ function twentyfourteen_scripts() {
|
||||
if ( is_singular() && wp_attachment_is_image() )
|
||||
wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
|
||||
|
||||
wp_enqueue_script( 'twentyfourteen-theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130402', true );
|
||||
wp_enqueue_script( 'twentyfourteen-theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130820', true );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
if ( $socialLinksToggle.hasClass( 'active' ) ) {
|
||||
$socialLinksToggle.removeClass( 'active' );
|
||||
}
|
||||
if ( $( this ).hasClass( 'active' ) )
|
||||
$searchBoxWrapper.find( '.search-field' ).focus();
|
||||
} );
|
||||
|
||||
// DOM manupilations for mobile header
|
||||
|
||||
Reference in New Issue
Block a user