diff options
Diffstat (limited to 'js/upload-selection.js')
| -rw-r--r-- | js/upload-selection.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/js/upload-selection.js b/js/upload-selection.js index 20916ba5..e2032748 100644 --- a/js/upload-selection.js +++ b/js/upload-selection.js @@ -20,9 +20,15 @@ $(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) { @@ -34,7 +40,9 @@ $(function(){ enable_file = function() { disable_all(); $("#upload").show(); - $("#upload_file").show(); + $(".file_separator").show(); + $("[id^=upload_file]").show(); + $(".add_image").show(); }; enable_url = function() { |
