[pve-devel] [PATCH manager 2/2] forbid decimals and exponent in HA resource edit numberfields

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 2 10:31:20 CET 2016


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/ha/ResourceEdit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index 4ee08a7..4803fc7 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -54,6 +54,8 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 		value: 1,
 		minValue: 0,
 		maxValue: 10,
+		allowDecimals: false,
+		allowExponential: false,
 		allowBlank: false
 	    },
 	    {
@@ -63,6 +65,8 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 		value: 1,
 		minValue: 0,
 		maxValue: 10,
+		allowDecimals: false,
+		allowExponential: false,
 		allowBlank: false
 	    }
 	];
-- 
2.1.4





More information about the pve-devel mailing list