mirror of
https://github.com/ae-utbm/sith.git
synced 2025-04-16 02:50:22 +00:00
move eboutic/makecommand.js
to bundled directory
This commit is contained in:
parent
3b9c8d7b03
commit
e35c1d1928
@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user