mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 16:47:46 +00:00
fix lint errors introduced by NFS version option patch
fixes commit d3abac4335
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
44d386a08e
commit
a671b6b5f9
@ -1,3 +1,4 @@
|
|||||||
|
/*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',
|
||||||
@ -96,8 +97,8 @@ Ext.define('PVE.storage.NFSInputPanel', {
|
|||||||
var res = values.options;
|
var res = values.options;
|
||||||
me.options = values.options.split(',');
|
me.options = values.options.split(',');
|
||||||
me.options.forEach(function(item) {
|
me.options.forEach(function(item) {
|
||||||
var match;
|
var match = item.match(/^vers=(.*)$/);
|
||||||
if (match = item.match(/^vers=(.*)$/)) {
|
if (match) {
|
||||||
values.nfsversion = match[1];
|
values.nfsversion = match[1];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -170,7 +171,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
|
|||||||
['4', '4'],
|
['4', '4'],
|
||||||
['4.1', '4.1'],
|
['4.1', '4.1'],
|
||||||
['4.2', '4.2']
|
['4.2', '4.2']
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user