fix JS error "chill is not defined"

This happens since js is loaded using "defer" tag
This commit is contained in:
Julien Fastré 2021-06-14 10:19:18 +02:00
parent 807d3674fc
commit 1df759e970

View File

@ -164,9 +164,11 @@
{{ encore_entry_script_tags('ckeditor5') }}
{% endif %}
<script type="text/javascript">
window.addEventListener('DOMContentLoaded', function(e) {
chill.checkOtherValueOnChange();
$('.select2').select2({allowClear: true});
chill.categoryLinkParentChildSelect();
});
</script>
{% block js%}<!-- nothing added to js -->{% endblock %}
</body>