WordPress.org

Make WordPress Core

Changeset 31932


Ignore:
Timestamp:
03/30/2015 07:19:27 PM (4 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: make sure submenu links work correctly on small screens with touch events.

Fixes #31762, props davidhamiltron.

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

Legend:

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

    r31842 r31932  
    171171
    172172    // Loads JavaScript file with functionality specific to Twenty Thirteen.
    173     wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true );
     173    wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true );
    174174
    175175    // Add Source Sans Pro and Bitter fonts, used in the main stylesheet.
  • trunk/src/wp-content/themes/twentythirteen/js/functions.js

    r31814 r31932  
    5858        // Fix sub-menus for touch devices.
    5959        if ( 'ontouchstart' in window ) {
    60             menu.find( '.menu-item-has-children > a' ).on( 'touchstart.twentythirteen', function( e ) {
     60            menu.find( '.menu-item-has-children > a, .page_item_has_children > a' ).on( 'touchstart.twentythirteen', function( e ) {
    6161                var el = $( this ).parent( 'li' );
    6262
Note: See TracChangeset for help on using the changeset viewer.