2015-02-22 08:25:27 +01:00
|
|
|
/*globals wp */
|
|
|
|
|
2015-02-09 01:43:50 +01:00
|
|
|
/**
|
|
|
|
* wp.media.controller.EditAttachmentMetadata
|
|
|
|
*
|
|
|
|
* A state for editing an attachment's metadata.
|
|
|
|
*
|
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:47:25 +01:00
|
|
|
var State = wp.media.controller.State,
|
2015-02-09 01:43:50 +01:00
|
|
|
l10n = wp.media.view.l10n,
|
|
|
|
EditAttachmentMetadata;
|
|
|
|
|
|
|
|
EditAttachmentMetadata = State.extend({
|
|
|
|
defaults: {
|
|
|
|
id: 'edit-attachment',
|
|
|
|
// Title string passed to the frame's title region view.
|
|
|
|
title: l10n.attachmentDetails,
|
|
|
|
// Region mode defaults.
|
|
|
|
content: 'edit-metadata',
|
|
|
|
menu: false,
|
|
|
|
toolbar: false,
|
|
|
|
router: false
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2015-02-09 17:01:29 +01:00
|
|
|
module.exports = EditAttachmentMetadata;
|