summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authormarktaiwan <mark.taiwan@gmail.com>2015-03-18 21:35:58 +0800
committerczaks <marcin@6irc.net>2015-03-31 05:57:22 +0200
commit0005f11098890ad76c1b9963792cd686493649a9 (patch)
tree0af6c24484e3ff69ddd595273fda72055076103a /templates/post_form.html
parent3bd7f94861e9a2a8b9a7f8f972f04eb6eaa45453 (diff)
initialize file selector soon as it's loaded
Conflicts: templates/post_form.html
Diffstat (limited to 'templates/post_form.html')
-rw-r--r--templates/post_form.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 9596ee6b..809230f0 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -106,6 +106,8 @@
</div>
</div>
+ <script type="text/javascript">if (typeof init_file_selector !== 'undefined') init_file_selector();</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>: