summaryrefslogtreecommitdiff
path: root/js/upload-selection.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-06-14 18:34:09 +0200
committerczaks <marcin@6irc.net>2014-06-14 18:34:09 +0200
commita4dc0d03b75b92155d6c2573278c16d5c781af1c (patch)
tree255ed69e4ba16961bfdee15532a8b0d14c186e82 /js/upload-selection.js
parentb12612ac576f0bb2c4f82e55d0596d40db77150d (diff)
parent91570ef083c20e779596583def6f9a7ce6a751bd (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'js/upload-selection.js')
-rw-r--r--js/upload-selection.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/upload-selection.js b/js/upload-selection.js
index 80dd0eaf..e2032748 100644
--- a/js/upload-selection.js
+++ b/js/upload-selection.js
@@ -20,11 +20,16 @@ $(function(){
var disable_all = function() {
$("#upload").hide();
- $("#upload_file").hide();
+ $("[id^=upload_file]").hide();
+ $(".file_separator").hide();
$("#upload_url").hide();
$("#upload_embed").hide();
$(".add_image").hide();
+ $('[id^=upload_file]').each(function(i, v) {
+ $(v).val('');
+ });
+
if (enabled_oekaki) {
if (window.oekaki.initialized) {
window.oekaki.deinit();
@@ -35,7 +40,8 @@ $(function(){
enable_file = function() {
disable_all();
$("#upload").show();
- $("#upload_file").show();
+ $(".file_separator").show();
+ $("[id^=upload_file]").show();
$(".add_image").show();
};