can click around file buttons
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user