WordPress/wp-includes/js/media/views/attachment/selection.js

23 lines
490 B
JavaScript
Raw Normal View History

/*globals wp */
/**
* wp.media.view.Attachment.Selection
*
* @class
* @augments wp.media.view.Attachment
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*/
var Selection = wp.media.view.Attachment.extend({
className: 'attachment selection',
// On click, just select the model, instead of removing the model from
// the selection.
toggleSelection: function() {
this.options.selection.single( this.model );
}
});
module.exports = Selection;