forked from leftypol/leftypol
Revert attempt at deferring file selector
Reverts most of c44bbde511
which failed to remove the previous file uploader leftypol/leftypol#37
This commit is contained in:
parent
e6212c1a51
commit
b3adcfe98b
|
@ -191,7 +191,3 @@ $(document).ready(function () {
|
|||
}
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
var maxImages = document.querySelector("form[name=post]").dataset.maxImages;
|
||||
init_file_selector(Number(maxImages));
|
||||
});
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
<td class="upload-area">
|
||||
<input type="file" name="file" id="upload_file">
|
||||
|
||||
<script type="text/javascript">if (typeof init_file_selector !== 'undefined') init_file_selector({{ config.max_images }});</script>
|
||||
|
||||
{% if config.allow_upload_by_url %}
|
||||
<div style="float:none;text-align:left" id="upload_url">
|
||||
<label for="file_url">{% trans %}Or URL{% endtrans %}</label>:
|
||||
|
|
Loading…
Reference in New Issue
Block a user