home · contact · privacy
Fix variable used before creation.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 28 Jan 2025 13:13:35 +0000 (14:13 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 28 Jan 2025 13:13:35 +0000 (14:13 +0100)
templates/_macros.tmpl

index 5afc9606a3d50bfb51f2222adece4baeb121a690..3619472b02cfb30f4b6bd17611b6794f89ae1d85 100644 (file)
@@ -59,11 +59,11 @@ function taint() {
     el.disabled = false;
   });
   // deactivate Booking links
+  let links_text = '';
   Array.from(document.getElementsByClassName("disable_on_change")).forEach((el) => {
     links_text += el.textContent + ' ';
   });
   const span = document.getElementById('booking_links');
-  let links_text = '';
   span.innerHTML = '';
   const del = document.createElement("del");
   span.appendChild(del);