Twenty Twelve: menu on touch devices: fix jQuery selector for menu items with submenus. props babbardel, fixes #24767.
Built from https://develop.svn.wordpress.org/trunk@30746 git-svn-id: http://core.svn.wordpress.org/trunk@30736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
330e97d663
commit
8c4a4962a0
|
@ -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