[pve-devel] [PATCH] cpuoptions : add emptyText
Alexandre Derumier
aderumier at odiso.com
Mon Jun 8 12:20:44 CEST 2015
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
www/manager/qemu/CPUOptions.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/manager/qemu/CPUOptions.js b/www/manager/qemu/CPUOptions.js
index 566ef0b..b5b7444 100644
--- a/www/manager/qemu/CPUOptions.js
+++ b/www/manager/qemu/CPUOptions.js
@@ -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',
--
2.1.4
More information about the pve-devel
mailing list