Fixed htmx initialisation

This commit is contained in:
Éloi Rivard 2023-06-30 17:50:30 +02:00
parent 7527443649
commit 4a3adf49f8

View file

@ -92,7 +92,9 @@
{% if config.get("HTMX", true) %}
<script src="/static/htmx/htmx.min.js" defer></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
htmx.config.requestClass = "loading"
})
</script>
{% endif %}
<script src="/static/js/base.js" defer></script>