variable for title length in tree

This commit is contained in:
Bel LaPointe
2022-02-10 11:05:27 -07:00
parent f62fe2cfe8
commit 6935303e6a

View File

@@ -209,8 +209,9 @@
function drawTree() {
function htmlifyBranch(id, branch) {
const maxTreeTitleLength = 35
var parent = `
<input type="button" value="${branch.Leaf.Title.substr(0, 15)}" onclick="drawFile('${id}');"/>
<input type="button" value="${branch.Leaf.Title.substr(0, maxTreeTitleLength)}" onclick="drawFile('${id}');"/>
<input type="button" value="+" onclick="drawNewFile('${id}');"/>
`
if (id == "") {