diff options
author | joeycastillo <joeycastillo@users.noreply.github.com> | 2022-07-06 04:32:16 +0000 |
---|---|---|
committer | joeycastillo <joeycastillo@users.noreply.github.com> | 2022-07-06 04:32:16 +0000 |
commit | d8dba8cc0f0c7807e120d7ca67d598d2413fb3e0 (patch) | |
tree | 8328c57d6cfd70839ca6682003ceaaaf0facba18 /menu.js | |
parent | c378a74ada806afb8004bf7a1c43ae46981a78e8 (diff) | |
download | Sensor-Watch-d8dba8cc0f0c7807e120d7ca67d598d2413fb3e0.tar.gz Sensor-Watch-d8dba8cc0f0c7807e120d7ca67d598d2413fb3e0.tar.bz2 Sensor-Watch-d8dba8cc0f0c7807e120d7ca67d598d2413fb3e0.zip |
deploy: 87da5f15ea314d53d97cee5f9fd13b4f83455256
Diffstat (limited to 'menu.js')
-rw-r--r-- | menu.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -28,7 +28,15 @@ function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { if ('children' in data) { result+='<ul>'; for (var i in data.children) { - result+='<li><a href="'+relPath+data.children[i].url+'">'+ + var url; + var link; + link = data.children[i].url; + if (link.substring(0,1)=='^') { + url = link.substring(1); + } else { + url = relPath+link; + } + result+='<li><a href="'+url+'">'+ data.children[i].text+'</a>'+ makeTree(data.children[i],relPath)+'</li>'; } |