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