mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 13:51:50 +00:00
follouwp: code cleanup for bond_mode_array
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
211bdf934f
commit
61e428c29d
7
Utils.js
7
Utils.js
@ -114,12 +114,7 @@ Ext.define('Proxmox.Utils', { utilities: {
|
|||||||
},
|
},
|
||||||
|
|
||||||
bond_mode_array: function(modes) {
|
bond_mode_array: function(modes) {
|
||||||
var arr = [];
|
return modes.map(mode => [mode, Proxmox.Utils.render_bond_mode(mode)]);
|
||||||
var i;
|
|
||||||
for (i = 0; i < modes.length; i++) {
|
|
||||||
arr.push([modes[i], Proxmox.Utils.render_bond_mode(modes[i])]);
|
|
||||||
}
|
|
||||||
return arr;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getNoSubKeyHtml: function(url) {
|
getNoSubKeyHtml: function(url) {
|
||||||
|
Loading…
Reference in New Issue
Block a user