diff options
Diffstat (limited to 'plugins/webbox/html')
-rw-r--r-- | plugins/webbox/html/webbox.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/webbox/html/webbox.js b/plugins/webbox/html/webbox.js index 839b93d..9b3a486 100644 --- a/plugins/webbox/html/webbox.js +++ b/plugins/webbox/html/webbox.js @@ -442,7 +442,15 @@ function setCurrentDir(newDir) { var menu = document.getElementsByClassName("menu")[0]; var firsttd = menu.getElementsByClassName("firsttd")[0]; - firsttd.innerHTML = getRootLink() + addDirectoryLinks(newDir); + + var result = getRootLink(); + + if (result == "" || newDir != "/") { + newDir = addDirectoryLinks(newDir); + result = result + newDir; + } + + firsttd.innerHTML = result; } function download(filename) { |