Make toolbar dropdown submenu links tappable. See #25972, props ninnypants.

git-svn-id: https://develop.svn.wordpress.org/trunk@26716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Thomas 2013-12-06 05:27:19 +00:00
parent 6384a83e5f
commit 3cf585f1d3
2 changed files with 5 additions and 2 deletions

View File

@ -1000,7 +1000,6 @@
}
#wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
display: inline-block;
margin: 0;
width: 100%;
top: auto;

View File

@ -20,10 +20,14 @@ if ( typeof(jQuery) != 'undefined' ) {
adminbar.find('li.menupop').on('click.wp-mobile-hover', function(e) {
var el = $(this);
if ( !el.hasClass('hover') ) {
if ( el.parent().is('#wp-admin-bar-root-default') && !el.hasClass('hover') ) {
e.preventDefault();
adminbar.find('li.menupop.hover').removeClass('hover');
el.addClass('hover');
} else if ( !el.hasClass('hover') ) {
e.stopPropagation();
e.preventDefault();
el.addClass('hover');
}
if ( unbind ) {