variable for title length in tree
This commit is contained in:
@@ -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 == "") {
|
||||
|
||||
Reference in New Issue
Block a user