Make WordPress Core

Ticket #30765: 30765.diff

File 30765.diff, 1.0 KB (added by kucrut, 10 years ago)
  • src/wp-admin/js/nav-menu.js

    diff --git src/wp-admin/js/nav-menu.js src/wp-admin/js/nav-menu.js
    index dc2183c..215e272 100644
    var wpNavMenu; 
    445445                                        thisLink.prop( 'title', menus.moveDown ).css( 'display', 'inline' );
    446446                                }
    447447
    448                                 if ( 0 === position && 0 !== hasSameDepthSibling ) {
    449                                         thisLink = menuItem.find( '.menus-move-down' );
    450                                         thisLink.prop( 'title', menus.moveDown ).css( 'display', 'inline' );
     448                                if ( 0 === position ) {
     449                                        if ( 0 !== hasSameDepthSibling  ) {
     450                                                menuItem.find('.field-move').show();
     451                                                thisLink = menuItem.find( '.menus-move-down' );
     452                                                thisLink.prop( 'title', menus.moveDown ).css( 'display', 'inline' );
     453                                        }
     454                                        else {
     455                                                menuItem.find('.field-move').hide();
     456                                        }
    451457                                }
    452458
    453459                                if ( ! isPrimaryMenuItem ) {
    var wpNavMenu; 
    11871193                                                $( '.drag-instructions' ).hide();
    11881194                                                ins.removeClass( 'menu-instructions-inactive' );
    11891195                                        }
     1196                                        api.refreshKeyboardAccessibility();
     1197                                        api.refreshAdvancedAccessibility();
    11901198                                });
    11911199                },
    11921200