summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-19 08:15:23 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-19 08:15:23 +0200
commitef25b32856bb02f947297aaab03ba5265b3e9292 (patch)
tree27167ab95f33238d4ed35a4cb3aee55f38342811
parent07c6c7f4fac4323122daf05f63ccf9152a709afb (diff)
downloadnextcloud-server-ef25b32856bb02f947297aaab03ba5265b3e9292.tar.gz
nextcloud-server-ef25b32856bb02f947297aaab03ba5265b3e9292.zip
don't upload canceled files
-rw-r--r--files/js/files.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 3ab09251f6f..40857fb03d6 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -95,9 +95,10 @@ $(document).ready(function() {
});
$('#file_upload_cancel').click(function() {
+ $('#file_upload_form')[0].reset();
$('#file_upload_start').val('Upload ' + $('.max_human_file_size:first').val());
$('#file_upload_start').attr('mode', 'menu');
- $('#file_upload_cancel').hide;
+ $('#file_upload_cancel').hide();
// $('#file_action_panel').attr('activeAction', 'false');
// $('#file_upload_form').hide();
// $('p.actions a.upload:first').show();