[pve-devel] [PATCH manager 05/10] jslint: fix missing or extra semicolon

Dominik Csapak d.csapak at proxmox.com
Fri Apr 29 12:06:30 CEST 2016


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Toolkit.js            | 2 +-
 www/manager6/Utils.js              | 4 ++--
 www/manager6/dc/Backup.js          | 2 +-
 www/manager6/form/MemoryField.js   | 2 +-
 www/manager6/grid/FirewallRules.js | 2 +-
 www/manager6/ha/ResourceEdit.js    | 4 +++-
 www/manager6/ha/Resources.js       | 4 +++-
 www/manager6/node/Subscription.js  | 4 ++--
 www/manager6/qemu/ProcessorEdit.js | 2 +-
 9 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/www/manager6/Toolkit.js b/www/manager6/Toolkit.js
index c12a20f..f05f68b 100644
--- a/www/manager6/Toolkit.js
+++ b/www/manager6/Toolkit.js
@@ -1,7 +1,7 @@
 /*global IP4_match, IP4_cidr_match, IP6_match, IP6_cidr_match, IP64_match*/
 // ExtJS related things
 
-PVE.Utils.toolkit = 'extjs',
+PVE.Utils.toolkit = 'extjs';
 
  // do not send '_dc' parameter
 Ext.Ajax.disableCaching = false;
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index cf29606..4eac6cc 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -975,11 +975,11 @@ Ext.define('PVE.Utils', { statics: {
 	    }
 	} else if (value === 'node') {
 	    if (record.data.running) {
-		gridcls = '-online'
+		gridcls = '-online';
 	    }
 	}
 
-	var fa = '<i class="fa fa-fw x-fa-grid' + gridcls  +  ' fa-' + icon  + '"></i> '
+	var fa = '<i class="fa fa-fw x-fa-grid' + gridcls  +  ' fa-' + icon  + '"></i> ';
 	return fa + value;
     },
 
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 7647cb8..7d2c038 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -467,7 +467,7 @@ Ext.define('PVE.dc.BackupView', {
 			    } else if (item == 1) {
 				days.push(Ext.Date.dayNames[(cur+1)%7]);
 			    }
-			})
+			});
 			return days.join(', ');
 		    }
 		},
diff --git a/www/manager6/form/MemoryField.js b/www/manager6/form/MemoryField.js
index 1d8bdb2..3a09697 100644
--- a/www/manager6/form/MemoryField.js
+++ b/www/manager6/form/MemoryField.js
@@ -33,7 +33,7 @@ Ext.define('PVE.form.MemoryField', {
 	for (j = 0; j < 9; j++) {
 	    for (i = 0; i < 32; i++) {
 		if ((value >= current_size) && (value < (current_size + dimm_size))) {
-		    value_start = current_size,
+		    value_start = current_size;
 		    value_up = current_size + dimm_size;
 		    value_down = current_size - ((i === 0) ? prev_dimm_size : dimm_size);
 		}
diff --git a/www/manager6/grid/FirewallRules.js b/www/manager6/grid/FirewallRules.js
index 4cc1e7a..887d014 100644
--- a/www/manager6/grid/FirewallRules.js
+++ b/www/manager6/grid/FirewallRules.js
@@ -274,7 +274,7 @@ Ext.define('PVE.FirewallRuleEdit', {
 			field.setValue(1);
 			Ext.Function.defer(function() {
 			    var form = ipanel.up('form').getForm();
-			    form.markInvalid(values.errors)
+			    form.markInvalid(values.errors);
 			}, 100);
 		    }
 		}
diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index 919e888..a650677 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -116,7 +116,9 @@ Ext.define('PVE.ha.VMResourceEdit', {
 		    var regex =  /^(\S+):(\S+)$/;
 		    var res = regex.exec(values.sid);
 
-		  if (res[1] !== 'vm' && res[1] !== 'ct') { throw "got unexpected resource type"; };
+		    if (res[1] !== 'vm' && res[1] !== 'ct') {
+			throw "got unexpected resource type";
+		    }
 
 		    values.vmid = res[2];
 		    
diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
index 24552e1..4c68c9f 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -46,7 +46,9 @@ Ext.define('PVE.ha.ResourcesView', {
 	    var regex =  /^(\S+):(\S+)$/;
 	    var res = regex.exec(sid);
 
-	  if (res[1] !== 'vm' && res[1] !== 'ct') { return; };
+	    if (res[1] !== 'vm' && res[1] !== 'ct') {
+		return;
+	    }
 	    
 	    var vmid = res[2];
 	    
diff --git a/www/manager6/node/Subscription.js b/www/manager6/node/Subscription.js
index ec5d50e..c6dcc2e 100644
--- a/www/manager6/node/Subscription.js
+++ b/www/manager6/node/Subscription.js
@@ -29,10 +29,10 @@ Ext.define('PVE.node.Subscription', {
 	var me = this;
 	var nodename = me.pveSelNode.data.node;
 
-	var getReportFileName= function() {
+	var getReportFileName = function() {
 	    var now = Ext.Date.format(new Date(), 'D-d-F-Y-G-i');
 	    return me.nodename + '-report-'  + now + '.txt';
-	}
+	};
 
 	var view = Ext.createWidget('component', {
 	    itemId: 'system-report-view',
diff --git a/www/manager6/qemu/ProcessorEdit.js b/www/manager6/qemu/ProcessorEdit.js
index b64c70c..8ac99b6 100644
--- a/www/manager6/qemu/ProcessorEdit.js
+++ b/www/manager6/qemu/ProcessorEdit.js
@@ -108,7 +108,7 @@ Ext.define('PVE.qemu.ProcessorEdit', {
     initComponent : function() {
 	var me = this;
 	
-	var ipanel = Ext.create('PVE.qemu.ProcessorInputPanel')
+	var ipanel = Ext.create('PVE.qemu.ProcessorInputPanel');
 
 	Ext.apply(me, {
 	    subject: gettext('Processors'),
-- 
2.1.4





More information about the pve-devel mailing list