variable for title length in tree

master
Bel LaPointe 2022-02-10 11:05:27 -07:00
parent f62fe2cfe8
commit 6935303e6a
1 changed files with 2 additions and 1 deletions

View File

@ -209,8 +209,9 @@
function drawTree() { function drawTree() {
function htmlifyBranch(id, branch) { function htmlifyBranch(id, branch) {
const maxTreeTitleLength = 35
var parent = ` 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}');"/> <input type="button" value="+" onclick="drawNewFile('${id}');"/>
` `
if (id == "") { if (id == "") {