forked from leftypol/leftypol
parent
bc7fa47aa2
commit
a1f64335f9
3 changed files with 55 additions and 16 deletions
|
@ -146,10 +146,15 @@
|
|||
{% trans %}File{% endtrans %}
|
||||
</th>
|
||||
<td class="upload-area">
|
||||
<input type="file" name="file" id="upload_file">
|
||||
<input type="file" name="file_multiple[]" id="upload_file" multiple/>
|
||||
|
||||
{% 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>
|
||||
<script type="text/javascript">
|
||||
if (typeof init_file_selector !== 'undefined') {
|
||||
var iOS_ifs = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
|
||||
if(!iOS_ifs) { init_file_selector({{ config.max_images }}); }
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue