mirror of
https://github.com/umap-project/umap.git
synced 2025-05-06 06:21:49 +02:00
Also run login javascript when page is loaded
This commit is contained in:
parent
2d111438c2
commit
d65b9f25c1
1 changed files with 46 additions and 44 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue