Make WordPress Core

Ticket #32324: 32324.patch

File 32324.patch, 1.9 KB (added by afercia, 10 years ago)
  • src/wp-includes/js/media-grid.js

     
    311311                // TODO: the Frame should be doing all of this.
    312312                if ( this.controller.isModeActive( 'select' ) ) {
    313313                        this.model.set( 'text', l10n.cancelSelection );
    314                         children.not( '.media-button' ).hide();
     314                        children.not( '.spinner, .media-button' ).hide();
    315315                        this.$el.show();
    316316                        toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' );
    317317                } else {
     
    319319                        this.controller.content.get().$el.removeClass( 'fixed' );
    320320                        toolbar.$el.css( 'width', '' );
    321321                        toolbar.$( '.delete-selected-button' ).addClass( 'hidden' );
    322                         children.not( '.spinner, .media-button' ).show();
     322                        children.not( '.media-button' ).show();
    323323                        this.controller.state().get( 'selection' ).reset();
    324324                }
    325325        }
  • src/wp-includes/js/media/views/button/select-mode-toggle.js

     
    4747                // TODO: the Frame should be doing all of this.
    4848                if ( this.controller.isModeActive( 'select' ) ) {
    4949                        this.model.set( 'text', l10n.cancelSelection );
    50                         children.not( '.media-button' ).hide();
     50                        children.not( '.spinner, .media-button' ).hide();
    5151                        this.$el.show();
    5252                        toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' );
    5353                } else {
     
    5555                        this.controller.content.get().$el.removeClass( 'fixed' );
    5656                        toolbar.$el.css( 'width', '' );
    5757                        toolbar.$( '.delete-selected-button' ).addClass( 'hidden' );
    58                         children.not( '.spinner, .media-button' ).show();
     58                        children.not( '.media-button' ).show();
    5959                        this.controller.state().get( 'selection' ).reset();
    6060                }
    6161        }