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 { |
| 2657 | 2657 | left: 0; |
| 2658 | 2658 | } |
| 2659 | 2659 | |
| | 2660 | .edit-attachment-frame .media-frame-content { |
| | 2661 | border-bottom: none; |
| | 2662 | bottom: 0; |
| | 2663 | } |
| | 2664 | |
| 2660 | 2665 | /* Hiding this for the moment instead of removing it from the template. */ |
| 2661 | 2666 | .edit-attachment-frame h3 { |
| 2662 | 2667 | display: none; |
diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
index 0ebbc67..46c9449 100644
|
a
|
b
|
|
| 25 | 25 | menu: false, |
| 26 | 26 | router: 'edit-metadata', |
| 27 | 27 | content: 'edit-metadata', |
| 28 | | toolbar: 'toolbar', |
| 29 | 28 | |
| 30 | 29 | url: '' |
| 31 | 30 | }, |
| … |
… |
|
| 34 | 33 | media.controller._State.prototype.initialize.apply( this, arguments ); |
| 35 | 34 | }, |
| 36 | 35 | |
| 37 | | activate: function() { |
| 38 | | this.listenTo( this.frame, 'toolbar:render:edit-image', this.toolbar ); |
| 39 | | }, |
| 40 | | |
| 41 | 36 | _postActivate: function() { |
| 42 | 37 | this._content(); |
| 43 | 38 | this._router(); |
| … |
… |
|
| 47 | 42 | this.stopListening( this.frame ); |
| 48 | 43 | }, |
| 49 | 44 | |
| 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 | | |
| 74 | 45 | /** |
| 75 | 46 | * @access private |
| 76 | 47 | */ |
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() { |
| 276 | 276 | </div> |
| 277 | 277 | <div class="media-frame-router"></div> |
| 278 | 278 | <div class="media-frame-content"></div> |
| 279 | | <div class="media-frame-toolbar"></div> |
| 280 | 279 | </script> |
| 281 | 280 | |
| 282 | 281 | <script type="text/html" id="tmpl-attachment-details-two-column"> |