From fde343569851d51d9405e72e0e87773e146b95d0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 14 Dec 2024 11:00:38 +0100 Subject: [PATCH] also capitalize dir entries --- static/js/cours.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/cours.js b/static/js/cours.js index 5eb8869..807a996 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -30,7 +30,7 @@ const buildFileTree = (parent, data, location) => { if (item.is_dir) { // Directory - li.textContent = item.name; + li.textContent = capitalize(item.name); li.classList.add("collapsed"); // Toggle collapsing on click