Make WordPress Core

Ticket #18556: 18556.3.diff

File 18556.3.diff, 5.4 KB (added by sujin2f, 10 years ago)
  • src/wp-admin/js/nav-menu.js

     
    429429                                        totalMenuItems = $('#menu-to-edit li').length,
    430430                                        hasSameDepthSibling = menuItem.nextAll( '.menu-item-depth-' + depth ).length;
    431431
    432                                 menuItem.find( '.field-move' ).toggle( totalMenuItems > 1 );
    433 
    434432                                // Where can they move this menu item?
    435433                                if ( 0 !== position ) {
    436434                                        thisLink = menuItem.find( '.menus-move-up' );
     
    594592                                start: function(e, ui) {
    595593                                        var height, width, parent, children, tempHolder;
    596594
     595                                        $('#wpadminbar .menupop').addClass('disable');
     596
    597597                                        // handle placement for rtl orientation
    598598                                        if ( api.isRTL )
    599599                                                ui.item[0].style.right = 'auto';
     
    645645                                        var children, subMenuTitle,
    646646                                                depthChange = currentDepth - originalDepth;
    647647
     648                                        $('#wpadminbar .menupop').removeClass('disable');
     649
    648650                                        // Return child elements to the list
    649651                                        children = transport.children().insertAfter(ui.item);
    650652
     
    11891191                                                $( '.drag-instructions' ).hide();
    11901192                                                ins.removeClass( 'menu-instructions-inactive' );
    11911193                                        }
    1192                                         api.refreshAdvancedAccessibility();
    11931194                                });
    11941195                },
    11951196
  • src/wp-admin/js/postbox.js

     
    8787                                forcePlaceholderSize: true,
    8888                                helper: 'clone',
    8989                                opacity: 0.65,
     90                                start: function() {
     91                                        $('#wpadminbar .menupop').addClass('disable');
     92                                },
    9093                                stop: function() {
     94                                        $('#wpadminbar .menupop').removeClass('disable');
     95
    9196                                        if ( $(this).find('#dashboard_browser_nag').is(':visible') && 'dashboard_browser_nag' != this.firstChild.id ) {
    9297                                                $(this).sortable('cancel');
    9398                                                return;
  • src/wp-admin/js/widgets.js

     
    9191                        zIndex: 100,
    9292                        containment: 'document',
    9393                        start: function( event, ui ) {
     94                                $('#wpadminbar .menupop').addClass('disable');
     95
    9496                                var chooser = $(this).find('.widgets-chooser');
    9597
    9698                                ui.helper.find('div.widget-description').hide();
     
    105107                                }
    106108                        },
    107109                        stop: function() {
     110                                $('#wpadminbar .menupop').removeClass('disable');
     111
    108112                                if ( rem ) {
    109113                                        $(rem).hide();
    110114                                }
     
    121125                        distance: 2,
    122126                        containment: 'document',
    123127                        start: function( event, ui ) {
     128                                $('#wpadminbar .menupop').addClass('disable');
     129
    124130                                var height, $this = $(this),
    125131                                        $wrap = $this.parent(),
    126132                                        inside = ui.item.children('.widget-inside');
     
    139145                        },
    140146
    141147                        stop: function( event, ui ) {
     148                                $('#wpadminbar .menupop').removeClass('disable');
     149
    142150                                var addNew, widgetNumber, $sidebar, $children, child, item,
    143151                                        $widget = ui.item,
    144152                                        id = the_id;
  • src/wp-includes/css/admin-bar.css

     
    8181        width: 100%;
    8282        min-width: 600px; /* match the min-width of the body in wp-admin.css */
    8383        z-index: 99999;
    84         background: #23282d;
     84        background: #222;
    8585}
    8686
    8787#wpadminbar .ab-sub-wrapper,
     
    136136        padding: 0;
    137137        -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    138138        box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    139         background: #32373c;
     139        background: #333;
    140140        display: none;
    141141        position: absolute;
    142142        float: none;
     
    210210#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
    211211#wpadminbar .ab-top-menu > li:hover > .ab-item,
    212212#wpadminbar .ab-top-menu > li.hover > .ab-item {
    213         background: #32373c;
     213        background: #333;
    214214        color: #45bbe6;
    215215}
    216216
     
    237237#wpadminbar .ab-icon:before,
    238238#wpadminbar .ab-item:before,
    239239#wpadminbar #adminbarsearch:before {
    240         color: #a0a5aa;
    241         color: rgba(240,245,250,0.6);
     240        color: #999;
    242241}
    243242
    244243#wpadminbar .ab-icon:before,
     
    255254}
    256255
    257256#wpadminbar .ab-submenu .ab-item {
    258         color: #b4b9be;
    259         color: rgba(240,245,250,0.7);
     257        color: #eee;
    260258}
    261259
    262260#wpadminbar .quicklinks .menupop ul li a,
    263261#wpadminbar .quicklinks .menupop ul li a strong,
    264262#wpadminbar .quicklinks .menupop.hover ul li a,
    265263#wpadminbar.nojs .quicklinks .menupop:hover ul li a {
    266         color: #b4b9be;
    267         color: rgba(240,245,250,0.7);
     264        color: #eee;
    268265}
    269266
    270267#wpadminbar .quicklinks .menupop ul li a:hover,
     
    282279#wpadminbar li.hover .ab-icon:before,
    283280#wpadminbar li.hover .ab-item:before,
    284281#wpadminbar li:hover #adminbarsearch:before {
    285         color: #00b9eb;
     282        color: #45bbe6;
    286283}
    287284
    288285#wpadminbar .menupop .menupop > .ab-item:before,
     
    328325
    329326#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
    330327#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
    331         background: #464b50;
     328        background: #4b4b4b;
    332329}
    333330
    334331#wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover,
    335332#wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a {
    336         color: #00b9eb;
     333        color: #45bbe6;
    337334}
    338335
    339336#wpadminbar .quicklinks a span#ab-updates {
    340337        background: #eee;
    341         color: #32373c;
     338        color: #333;
    342339        display: inline;
    343340        padding: 2px 5px;
    344341        font-size: 10px;
     
    439436        width: 16px;
    440437        height: 16px;
    441438        padding: 0;
    442         border: 1px solid #82878c;
     439        border: 1px solid #888;
    443440        background: #eee;
    444441        line-height: 24px;
    445442        vertical-align: middle;