Changeset 27480
- Timestamp:
- 03/09/2014 06:23:18 AM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r27479 r27480 1229 1229 // images that are not initially loaded still appear. 1230 1230 library.observe( this.get('selection') ); 1231 },1232 1233 activate: function() {1234 this.updateSelection();1235 media.controller.Library.prototype.activate.apply( this, arguments );1236 },1237 1238 updateSelection: function() {1239 var selection = this.get('selection'),1240 attachment;1241 1242 attachment = this.media.attachment;1243 1244 selection.reset( attachment ? [ attachment ] : [] );1245 1231 } 1246 1232 }); … … 2817 2803 attachment = selection.single(); 2818 2804 2819 controller.media.changeAttachment( attachment , state.display( attachment ));2805 controller.media.changeAttachment( attachment ); 2820 2806 2821 2807 state.trigger( 'replace', controller.media.toJSON() ); … … 2845 2831 attachment = selection.single(); 2846 2832 2847 controller.media.setSource( attachment , state.display( attachment ));2833 controller.media.setSource( attachment ); 2848 2834 2849 2835 state.trigger( 'add-source', controller.media.toJSON() ); … … 2915 2901 menu: 'audio-details' 2916 2902 } ), 2917 2918 2903 2919 2904 new media.controller.MediaLibrary( { -
trunk/src/wp-includes/js/mediaelement/wp-mediaelement.css
r27478 r27480 25 25 26 26 .media-embed-details .instructions { 27 padding: 16px ;27 padding: 16px 0; 28 28 max-width: 600px; 29 29 } … … 38 38 39 39 .media-embed-details .embed-media-settings { 40 top: 70px;40 top: 0; 41 41 } 42 42 -
trunk/src/wp-includes/media-template.php
r27478 r27480 665 665 <?php $audio_types = wp_get_audio_extensions(); ?> 666 666 <div class="media-embed media-embed-details"> 667 <div class="instructions media-instructions">{{{ wp.media.view.l10n.audioDetailsText }}}</div>668 667 <div class="embed-media-settings embed-audio-settings"> 668 <div class="instructions media-instructions">{{{ wp.media.view.l10n.audioDetailsText }}}</div> 669 669 <audio controls 670 670 class="wp-audio-shortcode" … … 732 732 <?php $video_types = wp_get_video_extensions(); ?> 733 733 <div class="media-embed media-embed-details"> 734 <div class="instructions media-instructions">{{{ wp.media.view.l10n.videoDetailsText }}}</div>735 734 <div class="embed-media-settings embed-video-settings"> 735 <div class="instructions media-instructions">{{{ wp.media.view.l10n.videoDetailsText }}}</div> 736 736 <div class="wp-video-holder"> 737 737 <#
Note: See TracChangeset
for help on using the changeset viewer.