delete button works, server returns 302 over 301 so browser cache is less bad, ui sorts filetree alpha by title

This commit is contained in:
Bel LaPointe
2022-02-16 08:49:45 -07:00
parent e025f3835a
commit 51bd874063
4 changed files with 24 additions and 11 deletions

View File

@@ -52,12 +52,14 @@
function branchesHTML(id, branches) {
if (!branchesHaveContent(branches))
return ""
var html = []
var out = ``
for(var i in branches) {
out += `<details open>`
out += branchHTML(i, branches[i])
out += `</details>`
html.push([branches[i].Leaf.Title, `<details open>` + branchHTML(i, branches[i]) + `</details>`])
}
html.sort()
for(var i in html)
out += html[i][1]
return out
}
function branchesHaveContent(branches) {