drop jslint lines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-06-06 18:11:47 +02:00
parent df503ff92c
commit 3bbce3b8cd
71 changed files with 0 additions and 102 deletions

View File

@ -342,9 +342,7 @@ Ext.define('PVE.Parser', { statics: {
} }
data.bridge = bridge_res[1]; data.bridge = bridge_res[1];
data.tag = bridge_res[4]; data.tag = bridge_res[4];
/*jslint confusion: true*/
data.firewall = bridge_res[5] ? 1 : 0; data.firewall = bridge_res[5] ? 1 : 0;
/*jslint confusion: false*/
} else { } else {
data[match_res[1]] = match_res[2]; data[match_res[1]] = match_res[2];
} }
@ -423,11 +421,9 @@ Ext.define('PVE.Parser', { statics: {
} }
}); });
/*jslint confusion: true*/
if (data.rate > 0) { if (data.rate > 0) {
tmparray.push('rate=' + data.rate); tmparray.push('rate=' + data.rate);
} }
/*jslint confusion: false*/
return tmparray.join(','); return tmparray.join(',');
}, },
@ -597,7 +593,6 @@ Ext.define('PVE.Parser', { statics: {
}, },
parseTfaType: function(value) { parseTfaType: function(value) {
/*jslint confusion: true*/
var match; var match;
if (!value || !value.length) { if (!value || !value.length) {
return undefined; return undefined;

View File

@ -214,7 +214,6 @@ Ext.define('PVE.StateProvider', {
}, },
get: function(name, defaultValue){ get: function(name, defaultValue){
/*jslint confusion: true */
var me = this; var me = this;
var data; var data;

View File

@ -19,7 +19,6 @@ Ext.Ajax.defaultHeaders = {
'Accept': 'application/json' 'Accept': 'application/json'
}; };
/*jslint confusion: true */
Ext.define('PVE.Utils', { utilities: { Ext.define('PVE.Utils', { utilities: {
// this singleton contains miscellaneous utilities // this singleton contains miscellaneous utilities
@ -795,7 +794,6 @@ Ext.define('PVE.Utils', { utilities: {
}, },
render_size: function(value, metaData, record, rowIndex, colIndex, store) { render_size: function(value, metaData, record, rowIndex, colIndex, store) {
/*jslint confusion: true */
if (!Ext.isNumeric(value)) { if (!Ext.isNumeric(value)) {
return ''; return '';

View File

@ -33,11 +33,9 @@ Ext.define('PVE.button.Split', {
if (me.confirmMsg) { if (me.confirmMsg) {
msg = me.confirmMsg; msg = me.confirmMsg;
// confirMsg can be boolean or function // confirMsg can be boolean or function
/*jslint confusion: true*/
if (Ext.isFunction(me.confirmMsg)) { if (Ext.isFunction(me.confirmMsg)) {
msg = me.confirmMsg(rec); msg = me.confirmMsg(rec);
} }
/*jslint confusion: false*/
Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1; Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1;
Ext.Msg.show({ Ext.Msg.show({
title: gettext('Confirm'), title: gettext('Confirm'),
@ -57,7 +55,6 @@ Ext.define('PVE.button.Split', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.ceph.CephInstallWizard', { Ext.define('PVE.ceph.CephInstallWizard', {
extend: 'PVE.window.Wizard', extend: 'PVE.window.Wizard',
alias: 'widget.pveCephInstallWizard', alias: 'widget.pveCephInstallWizard',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.CephCreateFS', { Ext.define('PVE.CephCreateFS', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
alias: 'widget.pveCephCreateFS', alias: 'widget.pveCephCreateFS',

View File

@ -61,7 +61,6 @@ Ext.define('PVE.CephCreatePool', {
} }
], ],
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.nodename) { if (!me.nodename) {

View File

@ -307,7 +307,6 @@ Ext.define('PVE.ceph.ServiceList', {
} }
}); });
/*jslint confusion: true*/
Ext.define('PVE.ceph.ServiceWidget', { Ext.define('PVE.ceph.ServiceWidget', {
extend: 'Ext.Component', extend: 'Ext.Component',
alias: 'widget.pveCephServiceWidget', alias: 'widget.pveCephServiceWidget',

View File

@ -53,7 +53,6 @@ Ext.define('PVE.data.ResourceStore', {
constructor: function(config) { constructor: function(config) {
// fixme: how to avoid those warnings // fixme: how to avoid those warnings
/*jslint confusion: true */
var me = this; var me = this;

View File

@ -24,7 +24,6 @@ Ext.define('PVE.dc.BackupEdit', {
name: 'vmid' name: 'vmid'
}); });
/*jslint confusion: true*/
// 'value' can be assigned a string or an array // 'value' can be assigned a string or an array
var selModeField = Ext.create('Proxmox.form.KVComboBox', { var selModeField = Ext.create('Proxmox.form.KVComboBox', {
xtype: 'proxmoxKVComboBox', xtype: 'proxmoxKVComboBox',
@ -225,7 +224,6 @@ Ext.define('PVE.dc.BackupEdit', {
}, },
vmidField vmidField
]; ];
/*jslint confusion: false*/
var ipanel = Ext.create('Proxmox.panel.InputPanel', { var ipanel = Ext.create('Proxmox.panel.InputPanel', {
onlineHelp: 'chapter_vzdump', onlineHelp: 'chapter_vzdump',
@ -628,7 +626,6 @@ Ext.define('PVE.dc.BackupView', {
sortable: false, sortable: false,
dataIndex: 'vmid', dataIndex: 'vmid',
renderer: function(value, metaData, record) { renderer: function(value, metaData, record) {
/*jslint confusion: true */
if (record.data.all) { if (record.data.all) {
if (record.data.exclude) { if (record.data.exclude) {
return Ext.String.format(me.allExceptText, record.data.exclude); return Ext.String.format(me.allExceptText, record.data.exclude);

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('pve-cluster-nodes', { Ext.define('pve-cluster-nodes', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ fields: [

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.ClusterCreateWindow', { Ext.define('PVE.ClusterCreateWindow', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
xtype: 'pveClusterCreateWindow', xtype: 'pveClusterCreateWindow',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.dc.OptionView', { Ext.define('PVE.dc.OptionView', {
extend: 'Proxmox.grid.ObjectGrid', extend: 'Proxmox.grid.ObjectGrid',
alias: ['widget.pveDcOptionView'], alias: ['widget.pveDcOptionView'],

View File

@ -81,7 +81,6 @@ Ext.define('PVE.SecurityGroupList', {
base_url: "/cluster/firewall/groups", base_url: "/cluster/firewall/groups",
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
if (me.rule_panel == undefined) { if (me.rule_panel == undefined) {

View File

@ -75,7 +75,6 @@ Ext.define('PVE.dc.StorageView', {
return function() { me.createStorageEditWindow(type); }; return function() { me.createStorageEditWindow(type); };
}; };
var addMenuItems = [], type; var addMenuItems = [], type;
/*jslint forin: true */
for (type in PVE.Utils.storageSchema) { for (type in PVE.Utils.storageSchema) {
var storage = PVE.Utils.storageSchema[type]; var storage = PVE.Utils.storageSchema[type];
if (storage.hideAdd) { if (storage.hideAdd) {

View File

@ -1,5 +1,4 @@
/*global u2f,QRCode,Uint8Array*/ /*global u2f,QRCode,Uint8Array*/
/*jslint confusion: true*/
Ext.define('PVE.window.TFAEdit', { Ext.define('PVE.window.TFAEdit', {
extend: 'Ext.window.Window', extend: 'Ext.window.Window',
mixins: ['Proxmox.Mixin.CBind'], mixins: ['Proxmox.Mixin.CBind'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.dc.UserView', { Ext.define('PVE.dc.UserView', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',

View File

@ -105,7 +105,6 @@ clist_loop:
flex: 1, flex: 1,
allowBlank: false, allowBlank: false,
validator: function(value) { validator: function(value) {
/*jslint confusion: true */
if (!me.rendered) { if (!me.rendered) {
return; return;
} }

View File

@ -238,7 +238,6 @@ Ext.define('PVE.form.GlobalSearchField', {
me.callParent(); me.callParent();
/*jslint confusion: true*/
/*because shift is also a function*/ /*because shift is also a function*/
// bind ctrl+shift+f and ctrl+space // bind ctrl+shift+f and ctrl+space
// to open/close the search // to open/close the search

View File

@ -59,7 +59,6 @@ Ext.define('PVE.form.HotplugFeatureSelector', {
}); });
/* because above is hotplug an array */ /* because above is hotplug an array */
/*jslint confusion: true*/
if (data.length === 0) { if (data.length === 0) {
return { 'hotplug':'0' }; return { 'hotplug':'0' };
} else { } else {

View File

@ -63,7 +63,6 @@ Ext.define('PVE.form.NodeSelector', {
}, },
validator: function(value) { validator: function(value) {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.onlineValidator || (me.allowBlank && !value)) { if (!me.onlineValidator || (me.allowBlank && !value)) {
return true; return true;

View File

@ -15,11 +15,9 @@ Ext.define('PVE.form.PrivilegesSelector', {
method: 'GET', method: 'GET',
success: function(response, options) { success: function(response, options) {
var data = [], key; var data = [], key;
/*jslint forin: true */
for (key in response.result.data) { for (key in response.result.data) {
data.push([key, key]); data.push([key, key]);
} }
/*jslint forin: false */
me.store.setData(data); me.store.setData(data);

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.form.VMCPUFlagSelector', { Ext.define('PVE.form.VMCPUFlagSelector', {
extend: 'Ext.grid.Panel', extend: 'Ext.grid.Panel',
alias: 'widget.vmcpuflagselector', alias: 'widget.vmcpuflagselector',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
/* filter is a javascript builtin, but extjs calls it also filter */ /* filter is a javascript builtin, but extjs calls it also filter */
Ext.define('PVE.form.VMSelector', { Ext.define('PVE.form.VMSelector', {
extend: 'Ext.grid.Panel', extend: 'Ext.grid.Panel',

View File

@ -7,7 +7,6 @@ Ext.define('PVE.FirewallOptions', {
base_url: undefined, base_url: undefined,
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;

View File

@ -477,7 +477,6 @@ Ext.define('PVE.FirewallRules', {
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.list_refs_url) { if (!me.list_refs_url) {

View File

@ -129,7 +129,6 @@ Ext.define('PVE.window.ReplicaEdit', {
} }
}); });
/*jslint confusion: true */
/* callback is a function and string */ /* callback is a function and string */
Ext.define('PVE.grid.ReplicaView', { Ext.define('PVE.grid.ReplicaView', {
extend: 'Ext.grid.Panel', extend: 'Ext.grid.Panel',

View File

@ -58,7 +58,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
} }
}); });
/*jslint confusion: true */
var vmidStore = (me.vmid) ? {} : { var vmidStore = (me.vmid) ? {} : {
model: 'PVEResources', model: 'PVEResources',
autoLoad: true, autoLoad: true,
@ -105,7 +104,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
allowBlank: false allowBlank: false
} }
]; ];
/*jslint confusion: false */
me.column2 = [ me.column2 = [
{ {

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.lxc.CreateWizard', { Ext.define('PVE.lxc.CreateWizard', {
extend: 'PVE.window.Wizard', extend: 'PVE.window.Wizard',
mixins: ['Proxmox.Mixin.CBind'], mixins: ['Proxmox.Mixin.CBind'],

View File

@ -91,7 +91,6 @@ Ext.define('PVE.lxc.DNSEdit', {
} }
}); });
/*jslint confusion: true */
Ext.define('PVE.lxc.DNS', { Ext.define('PVE.lxc.DNS', {
extend: 'Proxmox.grid.PendingObjectGrid', extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.pveLxcDNS'], alias: ['widget.pveLxcDNS'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.lxc.FeaturesInputPanel', { Ext.define('PVE.lxc.FeaturesInputPanel', {
extend: 'Proxmox.panel.InputPanel', extend: 'Proxmox.panel.InputPanel',
xtype: 'pveLxcFeaturesInputPanel', xtype: 'pveLxcFeaturesInputPanel',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
/* hidden: boolean and string /* hidden: boolean and string
* bind: function and object * bind: function and object
* disabled: boolean and string * disabled: boolean and string
@ -197,7 +196,6 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
if (Ext.isDefined(me.vmconfig["mp"+value])) { if (Ext.isDefined(me.vmconfig["mp"+value])) {
return "Mount point is already in use."; return "Mount point is already in use.";
} }
/*jslint confusion: true*/
/* returns a string above */ /* returns a string above */
return true; return true;
} }
@ -372,10 +370,8 @@ Ext.define('PVE.lxc.MountPointEdit', {
success: function(response, options) { success: function(response, options) {
ipanel.setVMConfig(response.result.data); ipanel.setVMConfig(response.result.data);
if (me.confid) { if (me.confid) {
/*jslint confusion: true*/
/*data is defined as array above*/ /*data is defined as array above*/
var value = response.result.data[me.confid]; var value = response.result.data[me.confid];
/*jslint confusion: false*/
var mp = PVE.Parser.parseLxcMountPoint(value); var mp = PVE.Parser.parseLxcMountPoint(value);
if (!mp) { if (!mp) {

View File

@ -112,7 +112,6 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
return result; return result;
} }
// validator can return bool/string // validator can return bool/string
/*jslint confusion:true*/
return true; return true;
} }
}, },

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.lxc.Options', { Ext.define('PVE.lxc.Options', {
extend: 'Proxmox.grid.PendingObjectGrid', extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.pveLxcOptions'], alias: ['widget.pveLxcOptions'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
var labelWidth = 120; var labelWidth = 120;
Ext.define('PVE.lxc.MemoryEdit', { Ext.define('PVE.lxc.MemoryEdit', {

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.lxc.RessourceView', { Ext.define('PVE.lxc.RessourceView', {
extend: 'Proxmox.grid.PendingObjectGrid', extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.pveLxcRessourceView'], alias: ['widget.pveLxcRessourceView'],

View File

@ -131,7 +131,6 @@ Ext.define('PVE.node.Directorylist', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
me.nodename = me.pveSelNode.data.node; me.nodename = me.pveSelNode.data.node;

View File

@ -127,7 +127,6 @@ Ext.define('PVE.node.DiskList', {
], ],
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
var nodename = me.pveSelNode.data.node; var nodename = me.pveSelNode.data.node;
@ -358,7 +357,6 @@ Ext.define('PVE.DiskSmartWindow', {
default: default:
// includes 'ata' // includes 'ata'
// cannot use empty case because // cannot use empty case because
// of jslint
grid.setVisible(true); grid.setVisible(true);
text.setVisible(false); text.setVisible(false);
grid.setStore(rec.attributes()); grid.setStore(rec.attributes());

View File

@ -147,7 +147,6 @@ Ext.define('PVE.node.LVMList', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
me.nodename = me.pveSelNode.data.node; me.nodename = me.pveSelNode.data.node;

View File

@ -155,7 +155,6 @@ Ext.define('PVE.node.LVMThinList', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
me.nodename = me.pveSelNode.data.node; me.nodename = me.pveSelNode.data.node;

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.node.CreateZFS', { Ext.define('PVE.node.CreateZFS', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
xtype: 'pveCreateZFS', xtype: 'pveCreateZFS',
@ -228,7 +227,6 @@ Ext.define('PVE.node.ZFSDevices', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.nodename) { if (!me.nodename) {
@ -271,7 +269,6 @@ Ext.define('PVE.node.ZFSStatus', {
border: false, border: false,
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.nodename) { if (!me.nodename) {
@ -463,7 +460,6 @@ Ext.define('PVE.node.ZFSList', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
me.nodename = me.pveSelNode.data.node; me.nodename = me.pveSelNode.data.node;

View File

@ -217,11 +217,9 @@ Ext.define('PVE.panel.Config', {
} }
me.savedItems = {}; me.savedItems = {};
/*jslint confusion:true*/
if (me.items[0]) { if (me.items[0]) {
me.firstItem = me.items[0].itemId; me.firstItem = me.items[0].itemId;
} }
/*jslint confusion:false*/
me.store = Ext.create('Ext.data.TreeStore', { me.store = Ext.create('Ext.data.TreeStore', {
root: { root: {

View File

@ -283,7 +283,6 @@ Ext.define('PVE.IPSetGrid', {
}, },
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.list_refs_url) { if (!me.list_refs_url) {

View File

@ -67,7 +67,6 @@ Ext.define('PVE.panel.StatusView', {
field.updateValue(renderer.call(field, me.getRecordValue(field.textField))); field.updateValue(renderer.call(field, me.getRecordValue(field.textField)));
} else if(field.valueField !== undefined) { } else if(field.valueField !== undefined) {
var used = me.getRecordValue(field.valueField); var used = me.getRecordValue(field.valueField);
/*jslint confusion: true*/
/* string and int */ /* string and int */
var max = field.maxField !== undefined ? me.getRecordValue(field.maxField) : 1; var max = field.maxField !== undefined ? me.getRecordValue(field.maxField) : 1;

View File

@ -192,7 +192,6 @@ Ext.define('PVE.qemu.CloudInit', {
me.editorConfig.url = me.baseurl + '/config'; me.editorConfig.url = me.baseurl + '/config';
me.editorConfig.pveSelNode = me.pveSelNode; me.editorConfig.pveSelNode = me.pveSelNode;
/*jslint confusion: true*/
/* editor is string and object */ /* editor is string and object */
me.rows = { me.rows = {
ciuser: { ciuser: {
@ -314,7 +313,6 @@ Ext.define('PVE.qemu.CloudInit', {
visible: false visible: false
}; };
} }
/*jslint confusion: false*/
PVE.Utils.forEachBus(['ide', 'scsi', 'sata'], function(type, id) { PVE.Utils.forEachBus(['ide', 'scsi', 'sata'], function(type, id) {
me.rows[type+id] = { me.rows[type+id] = {

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.qemu.CreateWizard', { Ext.define('PVE.qemu.CreateWizard', {
extend: 'PVE.window.Wizard', extend: 'PVE.window.Wizard',
alias: 'widget.pveQemuCreateWizard', alias: 'widget.pveQemuCreateWizard',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
/* 'change' property is assigned a string and then a function */ /* 'change' property is assigned a string and then a function */
Ext.define('PVE.qemu.HDInputPanel', { Ext.define('PVE.qemu.HDInputPanel', {
extend: 'Proxmox.panel.InputPanel', extend: 'Proxmox.panel.InputPanel',
@ -349,7 +348,6 @@ Ext.define('PVE.qemu.HDInputPanel', {
me.callParent(); me.callParent();
} }
}); });
/*jslint confusion: false */
Ext.define('PVE.qemu.HDEdit', { Ext.define('PVE.qemu.HDEdit', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
@ -389,7 +387,6 @@ Ext.define('PVE.qemu.HDEdit', {
me.items = [ ipanel ]; me.items = [ ipanel ];
me.callParent(); me.callParent();
/*jslint confusion: true*/
/* 'data' is assigned an empty array in same file, and here we /* 'data' is assigned an empty array in same file, and here we
* use it like an object * use it like an object
*/ */
@ -409,6 +406,5 @@ Ext.define('PVE.qemu.HDEdit', {
} }
} }
}); });
/*jslint confusion: false*/
} }
}); });

View File

@ -60,7 +60,6 @@ Ext.define('PVE.qemu.HardwareView', {
var caps = Ext.state.Manager.get('GuiCap'); var caps = Ext.state.Manager.get('GuiCap');
var diskCap = caps.vms['VM.Config.Disk']; var diskCap = caps.vms['VM.Config.Disk'];
/*jslint confusion: true */
var rows = { var rows = {
memory: { memory: {
header: gettext('Memory'), header: gettext('Memory'),
@ -219,7 +218,6 @@ Ext.define('PVE.qemu.HardwareView', {
visible: false visible: false
} }
}; };
/*jslint confusion: false */
PVE.Utils.forEachBus(undefined, function(type, id) { PVE.Utils.forEachBus(undefined, function(type, id) {
var confid = type + id; var confid = type + id;

View File

@ -188,7 +188,6 @@ Ext.define('PVE.qemu.IPConfigEdit', {
isAdd: true, isAdd: true,
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;

View File

@ -173,7 +173,6 @@ Ext.define('PVE.qemu.NetworkEdit', {
isAdd: true, isAdd: true,
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;

View File

@ -45,7 +45,6 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
initComponent : function() { initComponent : function() {
var me = this; var me = this;
/*jslint confusion: true */
me.items = [ me.items = [
{ {
xtype: 'displayfield', xtype: 'displayfield',
@ -90,7 +89,6 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
} }
} }
]; ];
/*jslint confusion: false */
me.callParent(); me.callParent();
} }

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.qemu.Options', { Ext.define('PVE.qemu.Options', {
extend: 'Proxmox.grid.PendingObjectGrid', extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.PVE.qemu.Options'], alias: ['widget.PVE.qemu.Options'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.qemu.SerialnputPanel', { Ext.define('PVE.qemu.SerialnputPanel', {
extend: 'Proxmox.panel.InputPanel', extend: 'Proxmox.panel.InputPanel',

View File

@ -92,7 +92,6 @@ Ext.define('PVE.qemu.Smbios1Edit', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.qemu.SystemInputPanel', { Ext.define('PVE.qemu.SystemInputPanel', {
extend: 'Proxmox.panel.InputPanel', extend: 'Proxmox.panel.InputPanel',
xtype: 'pveQemuSystemPanel', xtype: 'pveQemuSystemPanel',

View File

@ -74,7 +74,6 @@ Ext.define('PVE.sdn.ControllerView', {
return function() { me.createSDNControllerEditWindow(type); }; return function() { me.createSDNControllerEditWindow(type); };
}; };
var addMenuItems = [], type; var addMenuItems = [], type;
/*jslint forin: true */
for (type in PVE.Utils.sdncontrollerSchema) { for (type in PVE.Utils.sdncontrollerSchema) {
var controller = PVE.Utils.sdncontrollerSchema[type]; var controller = PVE.Utils.sdncontrollerSchema[type];

View File

@ -74,7 +74,6 @@ Ext.define('PVE.sdn.ZoneView', {
return function() { me.createSDNEditWindow(type); }; return function() { me.createSDNEditWindow(type); };
}; };
let addMenuItems = [], type; let addMenuItems = [], type;
/*jslint forin: true */
for (type in PVE.Utils.sdnzoneSchema) { for (type in PVE.Utils.sdnzoneSchema) {
let zone = PVE.Utils.sdnzoneSchema[type]; let zone = PVE.Utils.sdnzoneSchema[type];

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.CephFSInputPanel', { Ext.define('PVE.storage.CephFSInputPanel', {
extend: 'PVE.panel.StorageBase', extend: 'PVE.panel.StorageBase',
controller: 'cephstorage', controller: 'cephstorage',

View File

@ -115,7 +115,6 @@ Ext.define('PVE.storage.TemplateDownload', {
width: 900, width: 900,
height: 600, height: 600,
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;
var grid = Ext.create('PVE.grid.TemplateSelector', { var grid = Ext.create('PVE.grid.TemplateSelector', {
@ -175,7 +174,6 @@ Ext.define('PVE.storage.Upload', {
modal: true, modal: true,
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;
var xhr; var xhr;

View File

@ -155,7 +155,6 @@ Ext.define('PVE.storage.LVMInputPanel', {
// here value is an array, // here value is an array,
// while before it was a string // while before it was a string
/*jslint confusion: true*/
me.column1.push({ me.column1.push({
xtype: 'pveContentTypeSelector', xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'], cts: ['images', 'rootdir'],
@ -165,7 +164,6 @@ Ext.define('PVE.storage.LVMInputPanel', {
multiSelect: true, multiSelect: true,
allowBlank: false allowBlank: false
}); });
/*jslint confusion: false*/
me.column2 = [ me.column2 = [
{ {

View File

@ -149,7 +149,6 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
// here value is an array, // here value is an array,
// while before it was a string // while before it was a string
/*jslint confusion: true*/
me.column1.push({ me.column1.push({
xtype: 'pveContentTypeSelector', xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'], cts: ['images', 'rootdir'],
@ -159,7 +158,6 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
multiSelect: true, multiSelect: true,
allowBlank: false allowBlank: false
}); });
/*jslint confusion: false*/
me.column2 = []; me.column2 = [];

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.NFSScan', { Ext.define('PVE.storage.NFSScan', {
extend: 'Ext.form.field.ComboBox', extend: 'Ext.form.field.ComboBox',
alias: 'widget.pveNFSScan', alias: 'widget.pveNFSScan',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.Ceph.Model', { Ext.define('PVE.storage.Ceph.Model', {
extend: 'Ext.app.ViewModel', extend: 'Ext.app.ViewModel',
alias: 'viewmodel.cephstorage', alias: 'viewmodel.cephstorage',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.ZFSInputPanel', { Ext.define('PVE.storage.ZFSInputPanel', {
extend: 'PVE.panel.StorageBase', extend: 'PVE.panel.StorageBase',

View File

@ -61,7 +61,6 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
// value is an array, // value is an array,
// while before it was a string // while before it was a string
/*jslint confusion: true*/
me.column1.push( me.column1.push(
{xtype: 'pveContentTypeSelector', {xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'], cts: ['images', 'rootdir'],
@ -71,7 +70,6 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
multiSelect: true, multiSelect: true,
allowBlank: false allowBlank: false
}); });
/*jslint confusion: false*/
me.column2 = [ me.column2 = [
{ {
xtype: 'proxmoxcheckbox', xtype: 'proxmoxcheckbox',

View File

@ -61,7 +61,6 @@ Ext.define('PVE.window.BulkAction', {
var items = []; var items = [];
if (me.action === 'migrateall') { if (me.action === 'migrateall') {
/*jslint confusion: true*/
/*value is string and number*/ /*value is string and number*/
items.push( items.push(
{ {
@ -112,7 +111,6 @@ Ext.define('PVE.window.BulkAction', {
hidden: true // only visible if running container chosen hidden: true // only visible if running container chosen
} }
); );
/*jslint confusion: false*/
} else if (me.action === 'startall') { } else if (me.action === 'startall') {
items.push({ items.push({
xtype: 'hiddenfield', xtype: 'hiddenfield',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.ceph.Install', { Ext.define('PVE.ceph.Install', {
extend: 'Ext.window.Window', extend: 'Ext.window.Window',
xtype: 'pveCephInstallWindow', xtype: 'pveCephInstallWindow',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.FirewallEnableEdit', { Ext.define('PVE.FirewallEnableEdit', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
alias: ['widget.pveFirewallEnableEdit'], alias: ['widget.pveFirewallEnableEdit'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.FirewallLograteInputPanel', { Ext.define('PVE.FirewallLograteInputPanel', {
extend: 'Proxmox.panel.InputPanel', extend: 'Proxmox.panel.InputPanel',
xtype: 'pveFirewallLograteInputPanel', xtype: 'pveFirewallLograteInputPanel',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.window.Migrate', { Ext.define('PVE.window.Migrate', {
extend: 'Ext.window.Window', extend: 'Ext.window.Window',

View File

@ -92,7 +92,6 @@ Ext.define('PVE.window.Restore', {
}, },
]; ];
/*jslint confusion: true*/
if (me.vmtype === 'lxc') { if (me.vmtype === 'lxc') {
items.push({ items.push({
xtype: 'proxmoxcheckbox', xtype: 'proxmoxcheckbox',
@ -101,7 +100,6 @@ Ext.define('PVE.window.Restore', {
fieldLabel: gettext('Unprivileged container') fieldLabel: gettext('Unprivileged container')
}); });
} }
/*jslint confusion: false*/
me.formPanel = Ext.create('Ext.form.Panel', { me.formPanel = Ext.create('Ext.form.Panel', {
bodyPadding: 10, bodyPadding: 10,