copy form/ContentTypeSelector.js from manager to manager5

This commit is contained in:
Dietmar Maurer 2015-07-03 11:29:11 +02:00
parent a2657c6c5c
commit e80fdc6dd3

View 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();
}
});