From 501206feefce9823a9bb471ccd92ba36b793ebda Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 5 Dec 2014 22:58:12 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentytwelve/js/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwelve/js/navigation.js b/src/wp-content/themes/twentytwelve/js/navigation.js index 34a640246e..f7141bff7e 100644 --- a/src/wp-content/themes/twentytwelve/js/navigation.js +++ b/src/wp-content/themes/twentytwelve/js/navigation.js @@ -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' ) ) {