Browse Source

Make file-selector.js inline call conditional

pull/60/head
discomrade 1 year ago
parent
commit
409fbdf24a
  1. 3
      templates/post_form.html

3
templates/post_form.html

@ -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">

Loading…
Cancel
Save