Make WordPress Core

Ticket #22839: 22839.4.diff

File 22839.4.diff, 10.1 KB (added by MikeHansenMe, 8 years ago)

Refreshed and uses is-active class as Helen suggested

  • src/wp-admin/css/customize-controls.css

     
    3232        margin-right: 4px;
    3333}
    3434
    35 .saving #customize-header-actions .spinner {
    36         display: block;
    37 }
    38 
    3935#customize-header-actions {
    4036        border-bottom: 1px solid #ddd;
    4137}
  • src/wp-admin/js/dashboard.js

     
    6868                $( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false );
    6969
    7070                t = $('#quick-press').submit( function() {
    71                         $('#dashboard_quick_press #publishing-action .spinner').show();
     71                        $( '#dashboard_quick_press #publishing-action .spinner' ).addClass( 'is-active' );
    7272                        $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true);
    7373
    7474                        $.post( t.attr( 'action' ), t.serializeArray(), function( data ) {
  • src/wp-admin/js/edit-comments.js

     
    352352                $('#replycontent').css('height', '').val('');
    353353                $('#edithead input').val('');
    354354                $('.error', replyrow).html('').hide();
    355                 $('.spinner', replyrow).hide();
     355                $( '.spinner', replyrow ).removeClass( 'is-active' );
    356356
    357357                this.cid = '';
    358358        },
     
    442442                var post = {};
    443443
    444444                $('#replysubmit .error').hide();
    445                 $('#replysubmit .spinner').show();
     445                $( '#replysubmit .spinner' ).addClass( 'is-active' );
    446446
    447447                $('#replyrow input').not(':button').each(function() {
    448448                        var t = $(this);
     
    525525        error : function(r) {
    526526                var er = r.statusText;
    527527
    528                 $('#replysubmit .spinner').hide();
     528                $( '#replysubmit .spinner' ).removeClass( 'is-active' );
    529529
    530530                if ( r.responseText )
    531531                        er = r.responseText.replace( /<.[^<>]*?>/g, '' );
  • src/wp-admin/js/image-edit.js

     
    306306                        btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('.spinner');
    307307
    308308                btn.prop('disabled', true);
    309                 spin.show();
     309                spin.addClass( 'is-active' );
    310310
    311311                data = {
    312312                        'action': 'image-editor',
     
    324324                        head.fadeOut('fast', function(){
    325325                                elem.fadeIn('fast');
    326326                                btn.removeAttr('disabled');
    327                                 spin.hide();
     327                                spin.removeClass( 'is-active' );
    328328                        });
    329329                });
    330330
  • src/wp-admin/js/inline-edit-post.js

     
    243243                        id = this.getId(id);
    244244                }
    245245
    246                 $('table.widefat .spinner').show();
     246                $( 'table.widefat .spinner' ).addClass( 'is-active' );
    247247
    248248                params = {
    249249                        action: 'inline-save',
     
    259259                // make ajax request
    260260                $.post( ajaxurl, params,
    261261                        function(r) {
    262                                 $('table.widefat .spinner').hide();
     262                                $( 'table.widefat .spinner' ).removeClass( 'is-active' );
    263263
    264264                                if (r) {
    265265                                        if ( -1 !== r.indexOf( '<tr' ) ) {
     
    282282                var id = $('table.widefat tr.inline-editor').attr('id');
    283283
    284284                if ( id ) {
    285                         $('table.widefat .spinner').hide();
     285                        $( 'table.widefat .spinner' ).removeClass( 'is-active' );
    286286
    287287                        if ( 'bulk-edit' === id ) {
    288288                                $('table.widefat #bulk-edit').removeClass('inline-editor').hide().siblings('tr.hidden').remove();
  • src/wp-admin/js/inline-edit-tax.js

     
    7474                        id = this.getId(id);
    7575                }
    7676
    77                 $('table.widefat .spinner').show();
     77                $( 'table.widefat .spinner' ).addClass( 'is-active' );
    7878
    7979                params = {
    8080                        action: 'inline-save-tax',
  • src/wp-admin/js/nav-menu.js

     
    177177                                                        return false;
    178178
    179179                                                // Show the ajax spinner
    180                                                 t.find('.spinner').show();
     180                                                t.find( '.spinner' ).addClass( 'is-active' );
    181181
    182182                                                // Retrieve menu item data
    183183                                                $(checkboxes).each(function(){
     
    194194                                                api.addItemToMenu(menuItems, processMethod, function(){
    195195                                                        // Deselect the items and hide the ajax spinner
    196196                                                        checkboxes.removeAttr('checked');
    197                                                         t.find('.spinner').hide();
     197                                                        t.find( '.spinner' ).removeClass( 'is-active' );
    198198                                                });
    199199                                        });
    200200                                },
     
    877877                                'type': input.attr('name')
    878878                        };
    879879
    880                         $('.spinner', panel).show();
     880                        $( '.spinner', panel ).addClass( 'is-active' );
    881881
    882882                        $.post( ajaxurl, params, function(menuMarkup) {
    883883                                api.processQuickSearchQueryResponse(menuMarkup, params, panel);
     
    894894                                return false;
    895895
    896896                        // Show the ajax spinner
    897                         $('.customlinkdiv .spinner').show();
     897                        $( '.customlinkdiv .spinner' ).addClass( 'is-active' );
    898898                        this.addLinkToMenu( url, label, processMethod, function() {
    899899                                // Remove the ajax spinner
    900                                 $('.customlinkdiv .spinner').hide();
     900                                $( '.customlinkdiv .spinner' ).removeClass( 'is-active' );
    901901                                // Set custom link form back to defaults
    902902                                $('#custom-menu-item-name').val('').blur();
    903903                                $('#custom-menu-item-url').val('http://');
     
    11451145
    11461146                        if( ! $items.length ) {
    11471147                                $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' );
    1148                                 $('.spinner', panel).hide();
     1148                                $( '.spinner', panel ).removeClass( 'is-active' );
    11491149                                return;
    11501150                        }
    11511151
     
    11721172                        });
    11731173
    11741174                        $('.categorychecklist', panel).html( $items );
    1175                         $('.spinner', panel).hide();
     1175                        $( '.spinner', panel ).removeClass( 'is-active' );
    11761176                },
    11771177
    11781178                removeMenuItem : function(el) {
  • src/wp-admin/js/post.js

     
    193193
    194194                this.st += num;
    195195                this.total = total;
    196                 $('#commentsdiv .spinner').show();
     196                $( '#commentsdiv .spinner' ).addClass( 'is-active' );
    197197
    198198                data = {
    199199                        'action' : 'get-comments',
     
    208208                        function(r) {
    209209                                r = wpAjax.parseAjaxResponse(r);
    210210                                $('#commentsdiv .widefat').show();
    211                                 $('#commentsdiv .spinner').hide();
     211                                $( '#commentsdiv .spinner' ).removeClass( 'is-active' );
    212212
    213213                                if ( 'object' == typeof r && r.responses[0] ) {
    214214                                        $('#the-comment-list').append( r.responses[0].data );
  • src/wp-admin/js/widgets.js

     
    340340                        data = widget.find('form').serialize(), a;
    341341
    342342                widget = $(widget);
    343                 $('.spinner', widget).show();
     343                $( '.spinner', widget ).addClass( 'is-active' );
    344344
    345345                a = {
    346346                        action: 'save-widget',
     
    377377                                        widget.remove();
    378378                                }
    379379                        } else {
    380                                 $('.spinner').hide();
     380                                $( '.spinner' ).removeClass( 'is-active' );
    381381                                if ( r && r.length > 2 ) {
    382382                                        $( 'div.widget-content', widget ).html( r );
    383383                                        wpWidgets.appendTitle( widget );
  • src/wp-admin/options-general.php

     
    6060                });
    6161                $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() {
    6262                        var format = $(this);
    63                         format.siblings('.spinner').css('display', 'inline-block'); // show(); can't be used here
     63                        format.siblings( '.spinner' ).addClass( 'is-active' );
    6464                        $.post(ajaxurl, {
    6565                                        action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format',
    6666                                        date : format.val()
    67                                 }, function(d) { format.siblings('.spinner').hide(); format.siblings('.example').text(d); } );
     67                                }, function( d ) { format.siblings( '.spinner' ).removeClass( 'is-active' ); format.siblings( '.example' ).text( d ); } );
    6868                });
    6969
    7070                var languageSelect = $( '#WPLANG' );
  • src/wp-admin/press-this.php

     
    451451                        show('photo');
    452452                <?php } ?>
    453453                jQuery('#title').unbind();
    454                 jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').css('display', 'inline-block'); });
     454                jQuery( '#publish, #save' ).click(function() { jQuery( '.press-this #publishing-actions .spinner' ).addClass( 'is-active' ); } );
    455455
    456456                $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){
    457457                        $(this).siblings('.inside').toggle();
     
    497497                                                        echo '<br /><br />';
    498498                                                        submit_button( __( 'Submit for Review' ), 'primary', 'review', false );
    499499                                                } ?>
    500                                                 <span class="spinner" style="display: none;"></span>
     500                                                <span class="spinner"></span>
    501501                                        </p>
    502502                                        <?php if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) :
    503503                                                        $post_formats = get_theme_support( 'post-formats' );
  • src/wp-includes/css/editor.css

     
    13711371}
    13721372
    13731373#wp-link .link-search-wrapper .spinner {
    1374         display: none;
    13751374        vertical-align: text-bottom;
    13761375}
    13771376
  • src/wp-includes/css/media-views.css

     
    17851785        right: 26px;
    17861786}
    17871787
    1788 .media-frame .embed-loading .embed-url .spinner {
    1789         display: block;
    1790 }
    1791 
    17921788.embed-link-settings,
    17931789.embed-media-settings {
    17941790        position: absolute;