]> git.proxmox.com Git - pve-manager.git/commitdiff
cpuoptions : add emptyText
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 8 Jun 2015 10:20:44 +0000 (12:20 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 8 Jun 2015 10:52:09 +0000 (12:52 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
www/manager/qemu/CPUOptions.js

index 566ef0b183a1f34664aa9ec14fdfafdfad8ce181..b5b744483e19307b2642f63647f47a956881d1c2 100644 (file)
@@ -39,6 +39,7 @@ Ext.define('PVE.qemu.CPUOptionsInputPanel', {
                 value: '',
                 fieldLabel: gettext('Vcpus'),
                 allowBlank: true,
+                emptyText: me.maxvcpus
             },
             {
                 xtype: 'numberfield',
@@ -48,7 +49,8 @@ Ext.define('PVE.qemu.CPUOptionsInputPanel', {
                 value: '',
                 step: 1,
                 fieldLabel: gettext('CPU limit'),
-                allowBlank: true
+                allowBlank: true,
+                emptyText: gettext('unlimited')
             },
            {
                 xtype: 'numberfield',