From 28463418f8145f872839505f6095032257a71cab Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Fri, 4 Oct 2024 10:46:31 +0200 Subject: [PATCH] reset trombi on load (better when debugging) --- directory.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/directory.js b/directory.js index 85a79c3..b288dcb 100644 --- a/directory.js +++ b/directory.js @@ -121,6 +121,13 @@ function generateTrombi() { form.after(trombi); } +// reset +if (document.getElementById("kf-trombi_trombi")) { + document.getElementById("idTNListe").classList.remove("hidden"); + document.getElementById("kf-trombi_trombi").remove(); + document.getElementById("kf-trombi_row").remove(); +} + appendLink(); generateTrombi();