[pve-devel] [PATCH manager 10/10] js lint fixes
Dominik Csapak
d.csapak at proxmox.com
Mon Aug 22 17:13:42 CEST 2016
jslint needs FileReader as global
jslint want object.property instead of object['property']
jslint does not like trailing commas
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/lxc/CreateWizard.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index a6cb59d..07ee29f 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -1,3 +1,6 @@
+/*global
+ FileReader
+*/
/*jslint confusion: true */
Ext.define('PVE.lxc.CreateWizard', {
extend: 'PVE.window.Wizard',
@@ -122,7 +125,7 @@ Ext.define('PVE.lxc.CreateWizard', {
var files = ev.dataTransfer.files;
me.loadSSHKeyFromFile(files[0]);
});
- },
+ }
});
var column2 = [
@@ -285,8 +288,8 @@ Ext.define('PVE.lxc.CreateWizard', {
if (!kv['ssh-public-keys'].length) {
delete kv['ssh-public-keys'];
- } else if (!kv['password'].length) {
- delete kv['password'];
+ } else if (!kv.password.length) {
+ delete kv.password;
}
PVE.Utils.API2Request({
--
2.1.4
More information about the pve-devel
mailing list