WordPress.org

Make WordPress Core

Changeset 30746


Ignore:
Timestamp:
12/05/2014 10:58:12 PM (5 years ago)
Author:
azaozz
Message:

Twenty Twelve: menu on touch devices: fix jQuery selector for menu items with submenus. props babbardel, fixes #24767.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwelve/js/navigation.js

    r29095 r30746  
    4343
    4444  if ( 'ontouchstart' in window ) {
    45     $( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) {
     45    $('body').on( 'touchstart.twentytwelve',  '.menu-item-has-children > a, .page_item_has_children > a', function( e ) {
    4646      var el = $( this ).parent( 'li' );
    4747
Note: See TracChangeset for help on using the changeset viewer.