Commit cf966c48 authored by Dietmar Maurer's avatar Dietmar Maurer

use pveMemoryField for maxmemory

parent 5ef6d7e0
...@@ -72,17 +72,14 @@ Ext.define('PVE.qemu.MemoryInputPanel', { ...@@ -72,17 +72,14 @@ Ext.define('PVE.qemu.MemoryInputPanel', {
} }
}, },
{ {
xtype: 'numberfield', xtype: 'pveMemoryField',
name: 'maxmemory', name: 'maxmemory',
hotplug: me.hotplug,
disabled: true, disabled: true,
minValue: 32,
maxValue: 512*1024,
value: '1024', value: '1024',
step: 32,
fieldLabel: gettext('Maximum memory') + ' (MB)', fieldLabel: gettext('Maximum memory') + ' (MB)',
labelAlign: 'right', labelAlign: 'right',
labelWidth: labelWidth, labelWidth: labelWidth,
allowBlank: false,
listeners: { listeners: {
change: function(f, value) { change: function(f, value) {
var bf = me.down('field[name=balloon]'); var bf = me.down('field[name=balloon]');
......
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