From: Christian Heller Date: Tue, 28 Jan 2025 13:13:35 +0000 (+0100) Subject: Fix variable used before creation. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/%7B%7Btodo.comment%7D%7D?a=commitdiff_plain;h=347c3e769ae35c136f5e91f8133176fe7a9665f0;p=plomledger Fix variable used before creation. --- diff --git a/templates/_macros.tmpl b/templates/_macros.tmpl index 5afc960..3619472 100644 --- a/templates/_macros.tmpl +++ b/templates/_macros.tmpl @@ -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);