2015-03-30 22:03:29 -04:00
|
|
|
/*globals wp */
|
|
|
|
|
2015-02-08 19:43:50 -05:00
|
|
|
/**
|
|
|
|
* wp.media.view.Attachment.Selection
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @augments wp.media.view.Attachment
|
|
|
|
* @augments wp.media.View
|
|
|
|
* @augments wp.Backbone.View
|
|
|
|
* @augments Backbone.View
|
|
|
|
*/
|
2015-03-30 22:03:29 -04:00
|
|
|
var Selection = wp.media.view.Attachment.extend({
|
2015-02-08 19:43:50 -05:00
|
|
|
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 );
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2015-02-09 11:01:29 -05:00
|
|
|
module.exports = Selection;
|