modified file plugins
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* wp.media.view.MenuIconsItemSettings
|
||||
*
|
||||
* @class
|
||||
* @augments wp.media.view.PriorityList
|
||||
* @augments wp.media.View
|
||||
* @augments wp.Backbone.View
|
||||
* @augments Backbone.View
|
||||
*/
|
||||
var MenuIconsItemSettings = wp.media.view.PriorityList.extend({
|
||||
className: 'mi-settings attachment-info',
|
||||
|
||||
prepare: function() {
|
||||
_.each( this.collection.map( this.createField, this ), function( view ) {
|
||||
this.set( view.model.id, view );
|
||||
}, this );
|
||||
},
|
||||
|
||||
createField: function( model ) {
|
||||
var field = new wp.media.view.MenuIconsItemSettingField({
|
||||
item: this.model,
|
||||
model: model,
|
||||
collection: this.collection
|
||||
});
|
||||
|
||||
return field;
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = MenuIconsItemSettings;
|
Reference in New Issue
Block a user