copy form/ContentTypeSelector.js from manager to manager5
This commit is contained in:
parent
a2657c6c5c
commit
e80fdc6dd3
22
www/manager5/form/ContentTypeSelector.js
Normal file
22
www/manager5/form/ContentTypeSelector.js
Normal file
@ -0,0 +1,22 @@
|
||||
Ext.define('PVE.form.ContentTypeSelector', {
|
||||
extend: 'PVE.form.KVComboBox',
|
||||
alias: ['widget.pveContentTypeSelector'],
|
||||
|
||||
cts: undefined,
|
||||
|
||||
initComponent: function() {
|
||||
var me = this;
|
||||
|
||||
me.data = [];
|
||||
|
||||
if (me.cts === undefined) {
|
||||
me.cts = ['images', 'iso', 'vztmpl', 'backup', 'rootdir'];
|
||||
}
|
||||
|
||||
Ext.Array.each(me.cts, function(ct) {
|
||||
me.data.push([ct, PVE.Utils.format_content_types(ct)]);
|
||||
});
|
||||
|
||||
me.callParent();
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user