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-03-31 04:03:29 +02:00
|
|
|
var l10n = wp.media.view.l10n,
|
2015-02-09 01:43:50 +01:00
|
|
|
EditAttachmentMetadata;
|
|
|
|
|
2015-03-31 04:03:29 +02:00
|
|
|
EditAttachmentMetadata = wp.media.controller.State.extend({
|
2015-02-09 01:43:50 +01:00
|
|
|
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;
|