Translated using Weblate (Portuguese (Brazil))
[phpmyadmin.git] / templates / scripts.twig
blobc96122c2e66ab8b73e3e9a37adb6da22c54834e3
1 {% for file in files %}
2   <script data-cfasync="false" type="text/javascript" src="{{ base_dir }}js/{{ file.filename }}
3     {{- '.php' in file.filename ? get_common(file.params|merge({'v': version})) : '?v=' ~ version|url_encode }}"></script>
4 {% endfor %}
6 <script data-cfasync="false" type="text/javascript">
7 // <![CDATA[
8 {{ code|raw }}
9 {% if files is not empty %}
10 AJAX.scriptHandler
11 {% for file in files %}
12   .add('{{ file.filename|escape_js_string }}', {{ file.has_onload ? 1 : 0 }})
13 {% endfor %}
15 $(function() {
16 {% for file in files %}
17   {% if file.has_onload %}
18   AJAX.fireOnload('{{ file.filename|escape_js_string }}');
19   {% endif %}
20 {% endfor %}
21 });
22 {% endif %}
23 // ]]>
24 </script>