From ef25b32856bb02f947297aaab03ba5265b3e9292 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 19 Apr 2011 08:15:23 +0200 Subject: [PATCH] don't upload canceled files --- files/js/files.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();