diff --git a/html/ui.js b/html/ui.js index 0257f3f..4b64c60 100644 --- a/html/ui.js +++ b/html/ui.js @@ -246,10 +246,13 @@ onLoad(function() { // populate menu via ajax call var getMenu = function() { ajaxJson("GET", "/menu", function(data) { - var html = ""; + var html = "", path = window.location.pathname; for (var i=0; i" + data.menu[i] + ""); + var href = data.menu[i+1]; + html = html.concat("
  • " + + "" + + data.menu[i] + "
  • "); } $("#menu-list").innerHTML = html;