can click around file buttons
parent
8b566d32f8
commit
1d4c826ade
|
|
@ -27,7 +27,7 @@
|
||||||
#tree summary > div > a {
|
#tree summary > div > a {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
#tree summary > div > a > input {
|
#tree summary > div > input:first-child {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
@ -91,8 +91,9 @@
|
||||||
pids = pids.slice(0, pids.length-1)
|
pids = pids.slice(0, pids.length-1)
|
||||||
|
|
||||||
var titlePath = "/"
|
var titlePath = "/"
|
||||||
for (var pid in pids)
|
for (var pid in pids) {
|
||||||
titlePath += ` <a href="#?f=${pids[pid]}"><input type="button" value="${pids[pid]}" onclick="drawFile('${pids[pid]}');"/></a> /`
|
titlePath += ` <input type="button" value="${pids[pid]}" onclick="drawFile('${pids.slice(0, pid+1).join("/")}');"/> /`
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("titlePath").innerHTML = titlePath
|
document.getElementById("titlePath").innerHTML = titlePath
|
||||||
document.getElementById("title").innerHTML = title
|
document.getElementById("title").innerHTML = title
|
||||||
|
|
@ -100,6 +101,7 @@
|
||||||
easyMDE.meta = {
|
easyMDE.meta = {
|
||||||
id: id,
|
id: id,
|
||||||
}
|
}
|
||||||
|
window.location.hash = "#?f="+id
|
||||||
}
|
}
|
||||||
function drawTree() {
|
function drawTree() {
|
||||||
function htmlifyBranch(id, branch) {
|
function htmlifyBranch(id, branch) {
|
||||||
|
|
@ -110,7 +112,7 @@
|
||||||
<details open>
|
<details open>
|
||||||
<summary>
|
<summary>
|
||||||
<div>
|
<div>
|
||||||
<a href="#?f=${id}"><input type="button" value="${branch.Leaf.Title.substr(0, 15)}" onclick="drawFile('${id}');"/></a>
|
<input type="button" value="${branch.Leaf.Title.substr(0, 15)}" onclick="drawFile('${id}');"/>
|
||||||
<input type="button" value="+" onclick="drawNewFile('${id}');"/>
|
<input type="button" value="+" onclick="drawNewFile('${id}');"/>
|
||||||
</div>
|
</div>
|
||||||
</summary>
|
</summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue