diff --git a/eboutic/static/eboutic/js/makecommand.js b/eboutic/static/bundled/eboutic/makecommand-index.ts
similarity index 94%
rename from eboutic/static/eboutic/js/makecommand.js
rename to eboutic/static/bundled/eboutic/makecommand-index.ts
index 3ccb4280..da2a6f58 100644
--- a/eboutic/static/eboutic/js/makecommand.js
+++ b/eboutic/static/bundled/eboutic/makecommand-index.ts
@@ -17,12 +17,13 @@ document.addEventListener("alpine:init", () => {
data: etData,
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
const res = await fetch(etDataUrl);
if (res.ok) {
this.data = await res.json();
- document.getElementById("bank-submit-button").disabled = false;
+ button.disabled = false;
}
},
});
diff --git a/eboutic/templates/eboutic/eboutic_makecommand.jinja b/eboutic/templates/eboutic/eboutic_makecommand.jinja
index e18514e9..1846cdd1 100644
--- a/eboutic/templates/eboutic/eboutic_makecommand.jinja
+++ b/eboutic/templates/eboutic/eboutic_makecommand.jinja
@@ -9,7 +9,7 @@
{% endblock %}
{% block additional_js %}
-
+
{% endblock %}
{% block content %}