Also run login javascript when page is loaded
This commit is contained in:
parent
ce22a2ee74
commit
c6ce22f319
1 changed files with 6 additions and 1 deletions
|
@ -37,7 +37,10 @@
|
|||
{% endblock content %}
|
||||
{% block bottom_js %}
|
||||
{{ block.super }}
|
||||
|
||||
<script type="text/javascript">
|
||||
window.addEventListener('DOMContentLoaded', (event => {
|
||||
|
||||
!(function () {
|
||||
const ui = new L.U.UI(document.querySelector('header'))
|
||||
const xhr = new L.U.Xhr(ui)
|
||||
|
@ -85,6 +88,8 @@
|
|||
L.DomEvent.on(more, 'click', getMore, more)
|
||||
}
|
||||
})(this)
|
||||
}
|
||||
}))
|
||||
</script>
|
||||
{% endblock bottom_js %}
|
||||
{% block footer %}
|
||||
|
|
Loading…
Reference in a new issue