pve-manager/www/manager6/form/IntegerField.js
Dominik Csapak 8a7e5598f1 add pveIntegerField and use it
this adds a subclass of Ext.form.field.Number with the settings for
Integers (allowDecimals: false and allowExponential: false and default
step size 1)

and use it where we only accept integers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:14:06 +01:00

9 lines
183 B
JavaScript

Ext.define('PVE.form.IntegerField',{
extend: 'Ext.form.field.Number',
alias: 'widget.pveIntegerField',
allowDecimals: false,
allowExponential: false,
step: 1
});