[pve-devel] [PATCH manager] formatting and trailing whitespaces fix

Dominik Csapak d.csapak at proxmox.com
Tue Mar 15 13:41:27 CET 2016


fix format of commit
0a58709503d3dd2e444d00f9d205a231545302f1
(space before 'load')

also fix trailing whitespaces in those files

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/Summary.js          |  4 ++--
 www/manager6/form/ComboGrid.js      |  4 ++--
 www/manager6/lxc/Config.js          | 32 ++++++++++++++++----------------
 www/manager6/node/Config.js         |  2 +-
 www/manager6/qemu/Config.js         | 34 +++++++++++++++++-----------------
 www/manager6/storage/ContentView.js |  2 +-
 6 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/www/manager6/dc/Summary.js b/www/manager6/dc/Summary.js
index 76c4d67..fae8e36 100644
--- a/www/manager6/dc/Summary.js
+++ b/www/manager6/dc/Summary.js
@@ -66,7 +66,7 @@ Ext.define('PVE.dc.NodeView', {
 		    sortable: true,
 		    dataIndex: 'ip'
 		}
-	    ], 
+	    ],
 	    listeners: {
 		show: rstore.startUpdate,
 		hide: rstore.stopUpdate,
@@ -76,7 +76,7 @@ Ext.define('PVE.dc.NodeView', {
 
 	me.callParent();
 
-	me.mon(rstore,'load', function(s, records, success) {
+	me.mon(rstore, 'load', function(s, records, success) {
 	    if (!success) {
 		return;
 	    }
diff --git a/www/manager6/form/ComboGrid.js b/www/manager6/form/ComboGrid.js
index d7b0dc9..8d4652a 100644
--- a/www/manager6/form/ComboGrid.js
+++ b/www/manager6/form/ComboGrid.js
@@ -240,7 +240,7 @@ Ext.define('PVE.form.ComboGrid', {
             me.createPicker();
         }
 
-	me.mon(me.store, 'beforeload', function() {	 
+	me.mon(me.store, 'beforeload', function() {
 	    if (!me.isDisabled()) {
 		me.setDisabled(true);
 		me.enableAfterLoad = true;
@@ -251,7 +251,7 @@ Ext.define('PVE.form.ComboGrid', {
 	me.mon(me.store, 'load', function(store, r, success, o) {
 	    if (success) {
 		me.clearInvalid();
-		
+
 		if (me.enableAfterLoad) {
 		    delete me.enableAfterLoad;
 		    me.setDisabled(false);
diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 8244298..3ac8722 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -18,7 +18,7 @@ Ext.define('PVE.lxc.Config', {
 	var caps = Ext.state.Manager.get('GuiCap');
 
 	var base_url = '/nodes/' + nodename + '/lxc/' + vmid;
- 
+
 	me.statusStore = Ext.create('PVE.data.ObjectStore', {
 	    url: '/api2/json' + base_url + '/status/current',
 	    interval: 1000
@@ -36,23 +36,23 @@ Ext.define('PVE.lxc.Config', {
 	    });
 	};
 
-	var startBtn = Ext.create('Ext.Button', { 
+	var startBtn = Ext.create('Ext.Button', {
 	    text: gettext('Start'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
 	    handler: function() {
 		vm_command('start');
-	    }			    
-	}); 
+	    }
+	});
 
-	var umountBtn = Ext.create('Ext.Button', { 
+	var umountBtn = Ext.create('Ext.Button', {
 	    text: gettext('Unmount'),
 	    disabled: true,
 	    hidden: true,
 	    handler: function() {
 		vm_command('umount');
-	    }			    
-	}); 
- 
+	    }
+	});
+
 	var stopBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Stop'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
@@ -61,21 +61,21 @@ Ext.define('PVE.lxc.Config', {
 		vm_command("stop");
 	    }
 	});
- 
+
 	var shutdownBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Shutdown'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
 	    confirmMsg: Ext.String.format(gettext("Do you really want to shutdown VM {0}?"), vmid),
 	    handler: function() {
 		vm_command('shutdown');
-	    }			    
+	    }
 	});
- 
-	var migrateBtn = Ext.create('Ext.Button', { 
+
+	var migrateBtn = Ext.create('Ext.Button', {
 	    text: gettext('Migrate'),
 	    disabled: !caps.vms['VM.Migrate'],
 	    handler: function() {
-		var win = Ext.create('PVE.window.Migrate', { 
+		var win = Ext.create('PVE.window.Migrate', {
 		    vmtype: 'lxc',
 		    nodename: nodename,
 		    vmid: vmid
@@ -116,7 +116,7 @@ Ext.define('PVE.lxc.Config', {
 	Ext.apply(me, {
 	    title: Ext.String.format(gettext("Container {0} on node {1}"), descr, "'" + nodename + "'"),
 	    hstateid: 'lxctab',
-	    tbar: [ startBtn, shutdownBtn, umountBtn, stopBtn, removeBtn, 
+	    tbar: [ startBtn, shutdownBtn, umountBtn, stopBtn, removeBtn,
 		    migrateBtn, consoleBtn ],
 	    defaults: { statusStore: me.statusStore },
 	    items: [
@@ -172,7 +172,7 @@ Ext.define('PVE.lxc.Config', {
 		nodename: nodename
 	    });
 	}
-	
+
 	if (caps.vms['VM.Snapshot']) {
 	    me.items.push({
 		title: gettext('Snapshots'),
@@ -205,7 +205,7 @@ Ext.define('PVE.lxc.Config', {
 
 	me.callParent();
 
-	me.mon(me.statusStore,'load', function(s, records, success) {
+	me.mon(me.statusStore, 'load', function(s, records, success) {
 	    var status;
 	    if (!success) {
 		me.workspace.checkVmMigration(me.pveSelNode);
diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js
index 49a23c6..6d60bfc 100644
--- a/www/manager6/node/Config.js
+++ b/www/manager6/node/Config.js
@@ -218,7 +218,7 @@ Ext.define('PVE.node.Config', {
 
 	me.callParent();
 
-	me.mon(me.statusStore,'load', function(s, records, success) {
+	me.mon(me.statusStore, 'load', function(s, records, success) {
 	    var uptimerec = s.data.get('uptime');
 	    var powermgmt = uptimerec ? uptimerec.data.value : false;
 	    if (!caps.nodes['Sys.PowerMgmt']) {
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 815e0c4..4a094c7 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -14,13 +14,13 @@ Ext.define('PVE.qemu.Config', {
 	if (!vmid) {
 	    throw "no VM ID specified";
 	}
-	
+
 	var template = me.pveSelNode.data.template;
 
 	var caps = Ext.state.Manager.get('GuiCap');
 
 	var base_url = '/nodes/' + nodename + "/qemu/" + vmid;
- 
+
 	me.statusStore = Ext.create('PVE.data.ObjectStore', {
 	    url: '/api2/json' + base_url + '/status/current',
 	    interval: 1000
@@ -38,23 +38,23 @@ Ext.define('PVE.qemu.Config', {
 	    });
 	};
 
-	var resumeBtn = Ext.create('Ext.Button', { 
+	var resumeBtn = Ext.create('Ext.Button', {
 	    text: gettext('Resume'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
 	    visible: false,
 	    handler: function() {
 		vm_command('resume');
-	    }			    
-	}); 
+	    }
+	});
 
-	var startBtn = Ext.create('Ext.Button', { 
+	var startBtn = Ext.create('Ext.Button', {
 	    text: gettext('Start'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
 	    handler: function() {
 		vm_command('start');
-	    }			    
-	}); 
- 
+	    }
+	});
+
 	var stopBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Stop'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
@@ -64,7 +64,7 @@ Ext.define('PVE.qemu.Config', {
 	    }
 	});
 
-	var migrateBtn = Ext.create('Ext.Button', { 
+	var migrateBtn = Ext.create('Ext.Button', {
 	    text: gettext('Migrate'),
 	    disabled: !caps.vms['VM.Migrate'],
 	    handler: function() {
@@ -74,14 +74,14 @@ Ext.define('PVE.qemu.Config', {
 		    vmid: vmid
 		});
 		win.show();
-	    }    
+	    }
 	});
- 
+
 	var resetBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Reset'),
 	    disabled: !caps.vms['VM.PowerMgmt'],
 	    confirmMsg: Ext.String.format(gettext("Do you really want to reset VM {0}?"), vmid),
-	    handler: function() { 
+	    handler: function() {
 		vm_command("reset");
 	    }
 	});
@@ -92,7 +92,7 @@ Ext.define('PVE.qemu.Config', {
 	    confirmMsg: Ext.String.format(gettext("Do you really want to shutdown VM {0}?"), vmid),
 	    handler: function() {
 		vm_command('shutdown');
-	    }			    
+	    }
 	});
 
 	var removeBtn = Ext.create('PVE.button.Button', {
@@ -109,7 +109,7 @@ Ext.define('PVE.qemu.Config', {
 			Ext.Msg.alert('Error', response.htmlStatus);
 		    }
 		});
-	    } 
+	    }
 	});
 
 	var vmname = me.pveSelNode.data.name;
@@ -127,7 +127,7 @@ Ext.define('PVE.qemu.Config', {
 	Ext.apply(me, {
 	    title: Ext.String.format(gettext("Virtual Machine {0} on node {1}"), descr, "'" + nodename + "'"),
 	    hstateid: 'kvmtab',
-	    tbar: [ resumeBtn, startBtn, shutdownBtn, stopBtn, resetBtn, 
+	    tbar: [ resumeBtn, startBtn, shutdownBtn, stopBtn, resetBtn,
 		    removeBtn, migrateBtn, consoleBtn],
 	    defaults: { statusStore: me.statusStore },
 	    items: [
@@ -218,7 +218,7 @@ Ext.define('PVE.qemu.Config', {
 */
 	me.callParent();
 
-        me.mon(me.statusStore,'load', function(s, records, success) {
+        me.mon(me.statusStore, 'load', function(s, records, success) {
 	    var status;
 	    var qmpstatus;
 	    var spice = false;
diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index e08efef..a75fe22 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -512,7 +512,7 @@ Ext.define('PVE.storage.ContentView', {
 
 	// disable the buttons/restrict the upload window
 	// if templates or uploads are not allowed
-	me.mon(me.statusStore,'load', function(s,records,succes) {
+	me.mon(me.statusStore, 'load', function(s,records,succes) {
 	    var availcontent = [];
 	    Ext.Array.each(records, function(item){
 		if (item.id === 'content') {
-- 
2.1.4





More information about the pve-devel mailing list