Make WordPress Core

Ticket #24716: 24716.33.diff

File 24716.33.diff, 2.1 KB (added by ericlewis, 11 years ago)
  • src/wp-includes/css/media-views.css

    diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css
    index ad5a7be..d8038aa 100644
    a b video#inline-media-node { 
    26572657        left: 0;
    26582658}
    26592659
     2660.edit-attachment-frame .media-frame-content {
     2661        border-bottom: none;
     2662        bottom: 0;
     2663}
     2664
    26602665/* Hiding this for the moment instead of removing it from the template. */
    26612666.edit-attachment-frame h3 {
    26622667        display: none;
  • src/wp-includes/js/media-grid.js

    diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
    index 0ebbc67..46c9449 100644
    a b  
    2525                        menu:    false,
    2626                        router:  'edit-metadata',
    2727                        content: 'edit-metadata',
    28                         toolbar: 'toolbar',
    2928
    3029                        url:     ''
    3130                },
     
    3433                        media.controller._State.prototype.initialize.apply( this, arguments );
    3534                },
    3635
    37                 activate: function() {
    38                         this.listenTo( this.frame, 'toolbar:render:edit-image', this.toolbar );
    39                 },
    40 
    4136                _postActivate: function() {
    4237                        this._content();
    4338                        this._router();
     
    4742                        this.stopListening( this.frame );
    4843                },
    4944
    50                 toolbar: function() {
    51                         var frame = this.frame,
    52                                 lastState = frame.lastState(),
    53                                 previous = lastState && lastState.id;
    54 
    55                         frame.toolbar.set( new media.view.Toolbar({
    56                                 controller: frame,
    57                                 items: {
    58                                         back: {
    59                                                 style: 'primary',
    60                                                 text:     l10n.back,
    61                                                 priority: 20,
    62                                                 click:    function() {
    63                                                         if ( previous ) {
    64                                                                 frame.setState( previous );
    65                                                         } else {
    66                                                                 frame.close();
    67                                                         }
    68                                                 }
    69                                         }
    70                                 }
    71                         }) );
    72                 },
    73 
    7445                /**
    7546                 * @access private
    7647                 */
  • src/wp-includes/media-template.php

    diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
    index 098a03a..8a72e1b 100644
    a b function wp_print_media_templates() { 
    276276                </div>
    277277                <div class="media-frame-router"></div>
    278278                <div class="media-frame-content"></div>
    279                 <div class="media-frame-toolbar"></div>
    280279        </script>
    281280
    282281        <script type="text/html" id="tmpl-attachment-details-two-column">