[pve-devel] [PATCH manager 2/2] fix jslint errors

Dominik Csapak d.csapak at proxmox.com
Tue Jan 10 10:40:17 CET 2017


since the value at the top is now directly a string,
we need the jslint confusion at the number and not for the
string at the bottom anymore

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ha/ResourceEdit.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index c3c9135..bbb2314 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -65,6 +65,8 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 	    }
 	});
 
+	// value is a string above, but a number below
+	/*jslint confusion: true */
 	me.column1 = [
 	    {
 		xtype: me.vmid ? 'displayfield' : 'pveGuestIDSelector',
@@ -93,9 +95,8 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 		allowBlank: false
 	    }
 	];
+	/*jslint confusion: false */
 
-	// value is expected to be integer as it's above, ignore that
-	/*jslint confusion: true */
 	me.column2 = [
 	    {
 		xtype: 'pveHAGroupSelector',
@@ -127,7 +128,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 	    },
 	    disabledHint
 	];
-	/*jslint confusion: false */
 
 	me.columnB = [
 	    {
-- 
2.1.4





More information about the pve-devel mailing list