Make WordPress Core

Changeset 25064


Ignore:
Timestamp:
08/20/2013 05:45:18 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: Focus search box on search menu click, props kovshenin for original patch. Fixes #24895.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r25023 r25064  
    214214        wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
    215215
    216     wp_enqueue_script( 'twentyfourteen-theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130402', true );
     216    wp_enqueue_script( 'twentyfourteen-theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130820', true );
    217217}
    218218add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
  • trunk/src/wp-content/themes/twentyfourteen/js/theme.js

    r25062 r25064  
    4444                $socialLinksToggle.removeClass( 'active' );
    4545            }
     46            if ( $( this ).hasClass( 'active' ) )
     47                $searchBoxWrapper.find( '.search-field' ).focus();
    4648        } );
    4749
Note: See TracChangeset for help on using the changeset viewer.