Make WordPress Core

Ticket #29141: 29141.2.diff

File 29141.2.diff, 1.5 KB (added by stephdau, 11 years ago)

Props pento for JS

  • src/wp-admin/css/media.css

     
    456456}
    457457
    458458.upload-php .mode-grid .media-sidebar {
    459         z-index: 1900;
    460         top: 102px;
    461         bottom: auto;
    462         background: #fff;
     459        position: relative;
     460        width: 96%;
     461        padding: 16px;
    463462        border-left: none;
    464         padding: 16px;
    465         -webkit-box-shadow: -1px 0 1px rgba(0,0,0,.3);
    466         box-shadow: -1px 0 1px rgba(0,0,0,.3);
    467463}
    468464
    469465.upload-php .mode-grid .hide-sidebar .media-sidebar {
     
    473469.upload-php .mode-grid .media-sidebar .media-uploader-status {
    474470        border-bottom: none;
    475471        padding-bottom: 0;
     472        max-width: 100%;
    476473}
    477474
    478475.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors {
  • src/wp-includes/js/media-views.js

     
    57495749                        this.listenTo( this.controller, 'toggle:upload:attachment', _.bind( this.toggleUploader, this ) );
    57505750
    57515751                        this.createToolbar();
     5752                        if ( this.options.sidebar ) {
     5753                                this.createSidebar();
     5754                        }
    57525755                        this.createUploader();
    57535756                        this.createAttachments();
    57545757                        this.updateContent();
    5755                         if ( this.options.sidebar ) {
    5756                                 this.createSidebar();
    5757                         }
    57585758
    57595759                        if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
    57605760                                this.$el.addClass( 'hide-sidebar' );