Customizer: Fix tabindex of reorder buttons for menu items with depth 1 and 10.

props celloexpressions.
fixes #32767.

git-svn-id: https://develop.svn.wordpress.org/trunk@33077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-07-03 22:20:04 +00:00
parent 056fcf6162
commit 45e6228070
2 changed files with 6 additions and 3 deletions

View File

@ -172,9 +172,7 @@
.move-up-disabled .menus-move-up,
.move-down-disabled .menus-move-down,
.move-right-disabled .menus-move-right,
.move-left-disabled .menus-move-left,
.menu-item-depth-0 .menus-move-left,
.menu-item-depth-10 .menus-move-right {
.move-left-disabled .menus-move-left {
color: #d5d5d5 !important;
background-color: #fff !important;
cursor: default;

View File

@ -2026,6 +2026,11 @@
if ( currentMenuItemControls.length ) {
_( currentMenuItemControls ).each(function( menuItemControl ) {
menuItemControl.container.removeClass( 'move-up-disabled move-down-disabled move-left-disabled move-right-disabled' );
if ( 0 === context.currentDepth ) {
menuItemControl.container.addClass( 'move-left-disabled' );
} else if ( 10 === context.currentDepth ) {
menuItemControl.container.addClass( 'move-right-disabled' );
}
});
currentMenuItemControls[0].container