From a972bcbeecf6f7cdbb73573ec9c651983a89f5d0 Mon Sep 17 00:00:00 2001 From: cangui Date: Sat, 21 Jun 2025 18:20:31 +0200 Subject: [PATCH] up --- templates/assets/js/index.js | 9 --------- templates/dashboard.pages.tmpl | 8 +++++++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/templates/assets/js/index.js b/templates/assets/js/index.js index 4d88fa8..34889ab 100644 --- a/templates/assets/js/index.js +++ b/templates/assets/js/index.js @@ -85,12 +85,3 @@ function hide(target){ document.addEventListener("htmx:afterOnLoad", function (event) { // console.log("Réponse du serveur :", event.detail.xhr.responseText); }); - document.querySelectorAll('.path-link').forEach(el=>{ - el.addEventListener('click', e=>{ - e.preventDefault(); - let id = el.dataset.id; - fetch('/api/paths/'+id+'/media') - .then(r=>r.text()) - .then(html=> document.getElementById('content').innerHTML = html); - }); - }); diff --git a/templates/dashboard.pages.tmpl b/templates/dashboard.pages.tmpl index 84dec18..8082ed9 100644 --- a/templates/dashboard.pages.tmpl +++ b/templates/dashboard.pages.tmpl @@ -32,12 +32,18 @@