variable for title length in tree
parent
f62fe2cfe8
commit
6935303e6a
|
|
@ -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 == "") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue