From 6442dad71030737b218758838378d1ea26214c4d Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Tue, 19 Jul 2016 13:09:53 +0600 Subject: CLOUD: Add "breadcrumbs" in "/filesAJAX" --- backends/networking/wwwroot.zip | Bin 239682 -> 240788 bytes backends/networking/wwwroot/.filesAJAX.html | 44 ++++++++++++++++++++++++++-- backends/networking/wwwroot/style.css | 3 ++ 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/backends/networking/wwwroot.zip b/backends/networking/wwwroot.zip index 7aa7df39ec..fc627d50ca 100644 Binary files a/backends/networking/wwwroot.zip and b/backends/networking/wwwroot.zip differ diff --git a/backends/networking/wwwroot/.filesAJAX.html b/backends/networking/wwwroot/.filesAJAX.html index d1d077fc66..aab2a0414a 100644 --- a/backends/networking/wwwroot/.filesAJAX.html +++ b/backends/networking/wwwroot/.filesAJAX.html @@ -86,6 +86,46 @@ listDirectory(path, items); } + function makeBreadcrumb(name, path) { + var a = createElementWithContents("a", name); + a.onclick = function () { showDirectory(path); }; + a.href = "javascript:onclick();"; + return a; + } + + function makeBreadcrumbs(path) { + var b = document.createElement("b"); + b.className = "directory_name"; + + b.appendChild(createElementWithContents("span", "{index_of}")); + var slashes = true; + var crumb = ""; + var currentPath = ""; + path += ' '; //so the last slash is added + for (var i=0; i