diff --git a/files/js/files.js b/files/js/files.js index 9d05b3776fe..33573bfbbb9 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -142,14 +142,6 @@ $(document).ready(function() { }); $('#file_upload_start').change(function(){ - var filename=$(this).val(); - filename=filename.replace(/^.*[\/\\]/g, ''); - $('#file_upload_filename').val(filename); - $('#file_upload_submit').show(); - }) - - $('#file_upload_submit').click(function(){ - var name=$('#file_upload_filename').val(); var files=$('#file_upload_start')[0].files; $('#file_upload_target').load(function(){ var response=jQuery.parseJSON($('#file_upload_target').contents().find('body').text()); @@ -173,11 +165,7 @@ $(document).ready(function() { } FileList.addFile(files[i].name,size,uploadTime); } - $('#file_upload_filename').val($('#file_upload_filename').data('upload_text')); - $('#file_upload_submit').hide(); }); - //save the original upload button text - $('#file_upload_filename').data('upload_text',$('#file_upload_filename').val()); //add multiply file upload attribute to all browsers except konqueror (which crashes when it's used) if(navigator.userAgent.search(/konqueror/i)==-1){ diff --git a/files/templates/index.php b/files/templates/index.php index e2760d80da0..2ee3651836f 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -8,7 +8,6 @@ )"/>   -