25 lines
731 B
Twig
25 lines
731 B
Twig
{% for file in files %}
|
|
<script data-cfasync="false" src="{{ base_dir }}
|
|
{{- file.filename starts with 'index.php' ? file.filename : 'js/' ~ file.filename -}}
|
|
{{- '.php' in file.filename ? get_common(file.params|merge({'v': pma.version})) : '?v=' ~ pma.version|url_encode }}"></script>
|
|
{% endfor %}
|
|
|
|
<script data-cfasync="false">
|
|
// <![CDATA[
|
|
{{ code|raw }}
|
|
{% if files is not empty %}
|
|
{% for file in files %}
|
|
window.AJAX.scriptHandler.add('{{ file.filename|escape('js') }}', {{ file.has_onload ? 'true' : 'false' }});
|
|
{% endfor %}
|
|
|
|
$(function() {
|
|
{% for file in files %}
|
|
{% if file.has_onload %}
|
|
window.AJAX.fireOnload('{{ file.filename|escape('js') }}');
|
|
{% endif %}
|
|
{% endfor %}
|
|
});
|
|
{% endif %}
|
|
// ]]>
|
|
</script>
|