Ticket #30575: 30575.patch
| File 30575.patch, 921 bytes (added by , 10 years ago) |
|---|
-
wp-content/themes/twentyfourteen/js/functions.js
119 119 $( '.primary-navigation, .secondary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() { 120 120 $( this ).parents().toggleClass( 'focus' ); 121 121 } ); 122 123 // Enable hover for dropdown menu for touch devices 124 if ( 'ontouchstart' in window ) { 125 $('body').on( 'touchstart.twentyfourteen', '.menu-item-has-children > a, .page_item_has_children > a', function( e ) { 126 var el = $( this ).parent( 'li' ); 127 128 if ( ! el.hasClass( 'focus' ) ) { 129 e.preventDefault(); 130 el.toggleClass( 'focus' ); 131 el.siblings( '.focus').removeClass( 'focus' ); 132 } 133 } ); 134 } 122 135 } ); 123 136 124 137 /**