diff --git a/htdocs/lib/Modes.js b/htdocs/lib/Modes.js index dda89f2..e7b2597 100644 --- a/htdocs/lib/Modes.js +++ b/htdocs/lib/Modes.js @@ -18,27 +18,30 @@ var Modes = { var normalModes = available.filter(function(m){ return !m.digimode; }); var digiModes = available.filter(function(m){ return m.digimode; }); - var index = 0; - var arrayLength = normalModes.length; - var chunks = []; - - - for (index = 0; index < arrayLength; index += 5) { - chunks.push(normalModes.slice(index, index + 5)); - } var html = [] - html.push.apply(html, chunks.map(function(chunk){ + var buttons = normalModes.map(function(m){ return $( - '