Skip to content
Permalink
Browse files

move inline JavaScript into footer to ensure jQuery is loaded before

  • Loading branch information
Guite committed Jul 29, 2019
1 parent 314c62c commit 3dee12ac34535d266fc523a52eec38b8413c96c9
@@ -48,10 +48,10 @@
</div>
{{ form_end(form) }}
</div>

</div>
{{ adminFooter() }}
<script type="text/javascript">
{% set customScript %}
<script>
(function($) {
$(document).ready(function() {
var setPassEle = $('#{{ form.setpass.vars.id }}');
@@ -89,6 +89,8 @@
});
})(jQuery);
</script>
{% endset %}
{{ pageAddAsset('footer', customScript) }}
{% if getModVar('ZikulaZAuthModule', constant('Zikula\\ZAuthModule\\ZAuthConstant::MODVAR_PASSWORD_STRENGTH_METER_ENABLED')) %}
{{ pageAddAsset('javascript', zasset('@ZikulaZAuthModule:js/Zikula.ZAuth.PassMeter.js')) }}
{% set customScript %}
@@ -46,7 +46,8 @@
</div>
</div>
{{ adminFooter() }}
<script type="text/javascript">
{% set customScript %}
<script>
(function($) {
$(document).ready(function() {
var setPassEle = $('#{{ form.setpass.vars.id }}');
@@ -86,6 +87,8 @@
});
})(jQuery);
</script>
{% endset %}
{{ pageAddAsset('footer', customScript) }}
{% if getModVar('ZikulaZAuthModule', constant('Zikula\\ZAuthModule\\ZAuthConstant::MODVAR_PASSWORD_STRENGTH_METER_ENABLED')) %}
{{ pageAddAsset('javascript', zasset('@ZikulaZAuthModule:js/Zikula.ZAuth.PassMeter.js')) }}
{% set customScript %}

0 comments on commit 3dee12a

Please sign in to comment.
You can’t perform that action at this time.