[pve-devel] [PATCH manager 2/4] fix lint errors

Dominik Csapak d.csapak at proxmox.com
Mon May 2 15:43:57 CEST 2016


jslint does not like trailing commas and assignments
of the form "x = !(expression)"

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/tree/ResourceTree.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index 858fda2..feecf90 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -402,13 +402,13 @@ Ext.define('PVE.tree.ResourceTree', {
 		},
 		beforecellmousedown: function (tree, record,item,index,ev) {
 		    // disable selection when right clicking
-		    me.allowSelection = !(event.button === 2);
+		    me.allowSelection = (event.button !== 2);
 		},
 		beforeselect: function (tree, record, index, eopts) {
 		    var allow = me.allowSelection;
 		    me.allowSelection = true;
 		    return allow;
-		},
+		}
 	    },
 	    setViewFilter: function(view) {
 		me.viewFilter = view;
-- 
2.1.4





More information about the pve-devel mailing list