mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Twenty Twelve: menu on touch devices: fix jQuery selector for menu items with submenus. props babbardel, fixes #24767.
git-svn-id: https://develop.svn.wordpress.org/trunk@30746 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4315ce7f9d
commit
501206feef
@ -42,7 +42,7 @@
|
||||
} );
|
||||
|
||||
if ( 'ontouchstart' in window ) {
|
||||
$( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) {
|
||||
$('body').on( 'touchstart.twentytwelve', '.menu-item-has-children > a, .page_item_has_children > a', function( e ) {
|
||||
var el = $( this ).parent( 'li' );
|
||||
|
||||
if ( ! el.hasClass( 'focus' ) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user