Make files tree show up on page load

This commit is contained in:
Andrew 2021-12-20 12:51:27 -05:00
parent 6c262d20d7
commit e53da60b4f

View File

@ -139,7 +139,7 @@
<i class="far fa-folder-open"></i>
{{ translate('serverFiles', 'files', data['lang']) }}
</div>
<ul class="tree-nested" id="files-tree">
<ul class="tree-nested d-block" id="files-tree">
<li>{{ translate('serverFiles', 'error', data['lang']) }}</li>
</ul>
@ -647,7 +647,7 @@
document.getElementById("fileList").innerHTML = list;
}, false);
});
}
}
function getTreeView() {
$.ajax({
type: "GET",
@ -898,6 +898,8 @@
target.classList.add('btn-primary');
}
window.onload = getTreeView();
</script>
{% end %}