]>
git.proxmox.com Git - pve-manager.git/blob - www/manager/qemu/ProcessorEdit.js
1 Ext
.define('PVE.qemu.ProcessorInputPanel', {
2 extend
: 'PVE.panel.InputPanel',
3 alias
: 'widget.PVE.qemu.ProcessorInputPanel',
5 initComponent : function() {
15 fieldLabel
: gettext('Sockets'),
18 change: function(f
, value
) {
19 var sockets
= me
.down('field[name=sockets]').getValue();
20 var cores
= me
.down('field[name=cores]').getValue();
21 me
.down('field[name=totalcores]').setValue(sockets
*cores
);
31 fieldLabel
: gettext('Cores'),
34 change: function(f
, value
) {
35 var sockets
= me
.down('field[name=sockets]').getValue();
36 var cores
= me
.down('field[name=cores]').getValue();
37 me
.down('field[name=totalcores]').setValue(sockets
*cores
);
46 xtype
: 'CPUModelSelector',
49 fieldLabel
: gettext('CPU type')
52 xtype
: 'displayfield',
53 fieldLabel
: gettext('Total cores'),
64 Ext
.define('PVE.qemu.ProcessorEdit', {
65 extend
: 'PVE.window.Edit',
67 initComponent : function() {
71 subject
: gettext('Processors'),
72 items
: Ext
.create('PVE.qemu.ProcessorInputPanel')