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