[pve-devel] [PATCH manager 2/3] forbid decimals and exponent in lxc cores field
Dominik Csapak
d.csapak at proxmox.com
Mon Oct 31 12:10:10 CET 2016
because we only accept integers here
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/lxc/ResourceEdit.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/manager6/lxc/ResourceEdit.js b/www/manager6/lxc/ResourceEdit.js
index 502e66b..8511f01 100644
--- a/www/manager6/lxc/ResourceEdit.js
+++ b/www/manager6/lxc/ResourceEdit.js
@@ -136,6 +136,8 @@ Ext.define('PVE.lxc.CPUInputPanel', {
minValue: 1,
maxValue: 128,
step: 1,
+ allowDecimals: false,
+ allowExponential: false,
value: me.insideWizard ? 1 : '',
fieldLabel: gettext('Cores'),
allowBlank: true,
--
2.1.4
More information about the pve-devel
mailing list