2015-02-22 01:56:27 -05:00
|
|
|
/*globals wp */
|
|
|
|
|
2015-02-08 19:43:50 -05:00
|
|
|
/**
|
2015-02-22 01:56:27 -05:00
|
|
|
* wp.media.controller.VideoDetails
|
|
|
|
*
|
2015-02-08 19:43:50 -05:00
|
|
|
* The controller for the Video Details state
|
|
|
|
*
|
2015-02-22 01:28:26 -05:00
|
|
|
* @class
|
2015-02-08 19:43:50 -05:00
|
|
|
* @augments wp.media.controller.State
|
|
|
|
* @augments Backbone.Model
|
|
|
|
*/
|
2015-02-22 03:29:25 -05:00
|
|
|
var State = wp.media.controller.State,
|
2015-02-08 19:43:50 -05:00
|
|
|
l10n = wp.media.view.l10n,
|
|
|
|
VideoDetails;
|
|
|
|
|
|
|
|
VideoDetails = State.extend({
|
|
|
|
defaults: {
|
|
|
|
id: 'video-details',
|
|
|
|
toolbar: 'video-details',
|
|
|
|
title: l10n.videoDetailsTitle,
|
|
|
|
content: 'video-details',
|
|
|
|
menu: 'video-details',
|
|
|
|
router: false,
|
|
|
|
priority: 60
|
|
|
|
},
|
|
|
|
|
|
|
|
initialize: function( options ) {
|
|
|
|
this.media = options.media;
|
|
|
|
State.prototype.initialize.apply( this, arguments );
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2015-02-09 11:01:29 -05:00
|
|
|
module.exports = VideoDetails;
|