]> git.proxmox.com Git - pve-manager.git/blame - www/manager/form/ContentTypeSelector.js
disable animation of charts on load
[pve-manager.git] / www / manager / form / ContentTypeSelector.js
CommitLineData
aff192e6
DM
1Ext.define('PVE.form.ContentTypeSelector', {
2 extend: 'PVE.form.KVComboBox',
3 alias: ['widget.pveContentTypeSelector'],
4
2bfb58a1
DM
5 cts: undefined,
6
aff192e6
DM
7 initComponent: function() {
8 var me = this;
9
9f767883
DM
10 me.data = [];
11
2bfb58a1
DM
12 if (me.cts === undefined) {
13 me.cts = ['images', 'iso', 'vztmpl', 'backup', 'rootdir'];
14 }
15
16 Ext.Array.each(me.cts, function(ct) {
9f767883
DM
17 me.data.push([ct, PVE.Utils.format_content_types(ct)]);
18 });
aff192e6
DM
19
20 me.callParent();
21 }
22});