mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Make files tree show up on page load
This commit is contained in:
parent
6c262d20d7
commit
e53da60b4f
@ -139,7 +139,7 @@
|
|||||||
<i class="far fa-folder-open"></i>
|
<i class="far fa-folder-open"></i>
|
||||||
{{ translate('serverFiles', 'files', data['lang']) }}
|
{{ translate('serverFiles', 'files', data['lang']) }}
|
||||||
</div>
|
</div>
|
||||||
<ul class="tree-nested" id="files-tree">
|
<ul class="tree-nested d-block" id="files-tree">
|
||||||
<li>{{ translate('serverFiles', 'error', data['lang']) }}</li>
|
<li>{{ translate('serverFiles', 'error', data['lang']) }}</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -647,7 +647,7 @@
|
|||||||
document.getElementById("fileList").innerHTML = list;
|
document.getElementById("fileList").innerHTML = list;
|
||||||
}, false);
|
}, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getTreeView() {
|
function getTreeView() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
@ -898,6 +898,8 @@
|
|||||||
target.classList.add('btn-primary');
|
target.classList.add('btn-primary');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.onload = getTreeView();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% end %}
|
{% end %}
|
Loading…
Reference in New Issue
Block a user