mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 02:57:45 +01:00
d5b80a2be2
Fix the errant back-compat assignment for `wp.media.view.Frame`. See #28510. Built from https://develop.svn.wordpress.org/trunk@31494 git-svn-id: http://core.svn.wordpress.org/trunk@31475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
30 lines
630 B
JavaScript
30 lines
630 B
JavaScript
/*globals wp */
|
|
|
|
/**
|
|
* wp.media.controller.EditAttachmentMetadata
|
|
*
|
|
* A state for editing an attachment's metadata.
|
|
*
|
|
* @class
|
|
* @augments wp.media.controller.State
|
|
* @augments Backbone.Model
|
|
*/
|
|
var State = wp.media.controller.State,
|
|
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
|
|
}
|
|
});
|
|
|
|
module.exports = EditAttachmentMetadata;
|