move eboutic/makecommand.js to bundled directory

This commit is contained in:
Thomas Girod 2025-04-06 12:22:32 +02:00
parent 3b9c8d7b03
commit e35c1d1928
2 changed files with 4 additions and 3 deletions

View File

@ -17,12 +17,13 @@ document.addEventListener("alpine:init", () => {
data: etData, data: etData,
async fill() { async fill() {
document.getElementById("bank-submit-button").disabled = true; const button = document.getElementById("bank-submit-button") as HTMLButtonElement;
button.disabled = true;
// biome-ignore lint/correctness/noUndeclaredVariables: defined in eboutic_makecommand.jinja // biome-ignore lint/correctness/noUndeclaredVariables: defined in eboutic_makecommand.jinja
const res = await fetch(etDataUrl); const res = await fetch(etDataUrl);
if (res.ok) { if (res.ok) {
this.data = await res.json(); this.data = await res.json();
document.getElementById("bank-submit-button").disabled = false; button.disabled = false;
} }
}, },
}); });

View File

@ -9,7 +9,7 @@
{% endblock %} {% endblock %}
{% block additional_js %} {% block additional_js %}
<script src="{{ static('eboutic/js/makecommand.js') }}" defer></script> <script src="{{ static('bundled/eboutic/makecommand-index.ts') }}" defer></script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}