Also run login javascript when page is loaded

This commit is contained in:
Yohan Boniface 2023-12-29 16:11:08 +01:00
parent 2d111438c2
commit d65b9f25c1

View file

@ -38,6 +38,7 @@
{% block bottom_js %} {% block bottom_js %}
{{ block.super }} {{ block.super }}
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('load', (event) => {
!(function () { !(function () {
const ui = new L.U.UI(document.querySelector('header')) const ui = new L.U.UI(document.querySelector('header'))
const xhr = new L.U.Xhr(ui) const xhr = new L.U.Xhr(ui)
@ -85,6 +86,7 @@
L.DomEvent.on(more, 'click', getMore, more) L.DomEvent.on(more, 'click', getMore, more)
} }
})(this) })(this)
})
</script> </script>
{% endblock bottom_js %} {% endblock bottom_js %}
{% block footer %} {% block footer %}