forbid decimals and exponent in lxc cores field

because we only accept integers here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-10-31 12:10:10 +01:00 committed by Dietmar Maurer
parent 1e4a853c1e
commit 1d654cfe40

View File

@ -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,