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

Built from https://develop.svn.wordpress.org/trunk@26716


git-svn-id: http://core.svn.wordpress.org/trunk@26605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Matt Thomas 2013-12-06 05:28:11 +00:00
parent 1f5503f92e
commit c31444d1be
6 changed files with 8 additions and 6 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;

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

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 ) {

File diff suppressed because one or more lines are too long