diff options
Diffstat (limited to 'templates/html/menu.js')
-rw-r--r-- | templates/html/menu.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/html/menu.js b/templates/html/menu.js index 54e81cf..818b859 100644 --- a/templates/html/menu.js +++ b/templates/html/menu.js @@ -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>'; } |