fix: messages coming from Django where never displayed in map view
This commit is contained in:
parent
a94a8b75cb
commit
a7425aa121
1 changed files with 4 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
|||
<script type="text/javascript">
|
||||
window.addEventListener('DOMContentLoaded', (event) => {
|
||||
{% for m in messages %}
|
||||
{# We have just one, but we need to loop, as for messages API #}
|
||||
L.U.fire('ui:alert', {
|
||||
MAP.ui.alert({
|
||||
content: "{{ m }}",
|
||||
level: "{{ m.tags }}",
|
||||
duration: 100000
|
||||
})
|
||||
{% endfor %}
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue