Make file-selector.js inline call conditional

This commit is contained in:
discomrade 2021-11-11 13:07:32 -01:00
parent 3ae859d6e6
commit 4fcbad3fb1

View File

@ -148,7 +148,10 @@
<td class="upload-area">
<input type="file" name="file" id="upload_file">
{% if 'js/file-selector.js' in config.additional_javascript %}
<script type="text/javascript">if (typeof init_file_selector !== 'undefined') init_file_selector({{ config.max_images }});</script>
{% endif %}
{% if config.allow_upload_by_url %}
<div style="float:none;text-align:left" id="upload_url">