Changeset 27242
- Timestamp:
- 02/24/2014 08:25:54 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-editor.js
r27239 r27242 584 584 tracklist: false, 585 585 tracknumbers: false, 586 images: false586 images: true 587 587 } 588 588 }; … … 813 813 814 814 workflow.state('playlist-edit').on( 'update', function( selection ) { 815 /** 816 * @this wp.media.editor 817 */ 815 818 this.insert( wp.media.playlist.shortcode( selection ).string() ); 816 819 }, this ); 817 820 818 821 workflow.state('video-playlist-edit').on( 'update', function( selection ) { 822 /** 823 * @this wp.media.editor 824 */ 819 825 this.insert( wp.media['video-playlist'].shortcode( selection ).string() ); 820 826 }, this ); -
trunk/src/wp-includes/media-template.php
r27241 r27242 432 432 </label> 433 433 434 <# 435 var playlist = 'playlist-edit' === data.controller.id, emptyModel = 'undefined' === typeof data.model.style; 436 #> 434 437 <label class="setting"> 435 438 <span><?php _e( 'Show Tracklist' ); ?></span> 436 <input type="checkbox" data-setting="_tracklist" /> 439 <input type="checkbox" data-setting="_tracklist" <# if ( playlist && emptyModel ) { #> 440 checked="checked" 441 <# } #> /> 437 442 </label> 438 443 439 444 <label class="setting"> 440 445 <span><?php _e( 'Show Track Numbers' ); ?></span> 441 <input type="checkbox" data-setting="_tracknumbers" /> 446 <input type="checkbox" data-setting="_tracknumbers" <# if ( playlist && emptyModel ) { #> 447 checked="checked" 448 <# } #> /> 442 449 </label> 443 450 444 451 <label class="setting"> 445 452 <span><?php _e( 'Show Artist Name in Tracklist' ); ?></span> 446 <input type="checkbox" data-setting="_artists" /> 453 <input type="checkbox" data-setting="_artists" <# if ( playlist && emptyModel ) { #> 454 checked="checked" 455 <# } #> /> 447 456 </label> 448 457 449 458 <label class="setting"> 450 459 <span><?php _e( 'Show Images' ); ?></span> 451 <input type="checkbox" data-setting="_images" /> 460 <input type="checkbox" data-setting="_images" <# if ( emptyModel ) { #> 461 checked="checked" 462 <# } #> /> 452 463 </label> 453 464 </script>
Note: See TracChangeset
for help on using the changeset viewer.