]> git.proxmox.com Git - pve-manager.git/commitdiff
use pveMemoryField for maxmemory
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Feb 2015 11:41:08 +0000 (12:41 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Feb 2015 11:41:08 +0000 (12:41 +0100)
www/manager/qemu/MemoryEdit.js

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