Commit e80fdc6d authored by Dietmar Maurer's avatar Dietmar Maurer

copy form/ContentTypeSelector.js from manager to manager5

parent a2657c6c
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();
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment