CoreFiles by mySites.guru
edit-image-details.js35 lines, 734 bytes, from wordpress-4.2-beta2.zip
Raw History Compare with 4.2-beta1
md5
ad8df5d7c99d2c1e3924e1cb4267feff
sha1
eac3748783d8b07ebd6e3bea1a39f27d899c2265
sha256
baca63efa4e0751147367390bd4eeaeda5b3c50cadedfa29651b588fe36fcc99
/*globals wp, _ */

/**
 * wp.media.view.EditImage.Details
 *
 * @class
 * @augments wp.media.view.EditImage
 * @augments wp.media.View
 * @augments wp.Backbone.View
 * @augments Backbone.View
 */
var View = wp.media.View,
	EditImage = wp.media.view.EditImage,
	Details;

Details = EditImage.extend({
	initialize: function( options ) {
		this.editor = window.imageEdit;
		this.frame = options.frame;
		this.controller = options.controller;
		View.prototype.initialize.apply( this, arguments );
	},

	back: function() {
		this.frame.content.mode( 'edit-metadata' );
	},

	save: function() {
		this.model.fetch().done( _.bind( function() {
			this.frame.content.mode( 'edit-metadata' );
		}, this ) );
	}
});

module.exports = Details;

The same content is in 4 releases, WordPress 4.2-beta1 to 4.2-beta4. See them all, or every version of this file.