1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[repo] fixed file-upload bug

This commit is contained in:
llj
2013-04-25 17:52:39 +08:00
parent 417f965256
commit d81e9b65be

View File

@@ -47,8 +47,8 @@ function submitAndShowProgress(form, upload_progress_con) {
};
$('#upload-file-form .submit').click(function () {
if (!$.trim($('#upload-file-form input[type=file]').val())) {
$('#upload-file-form .error').html('{% trans "Please choose a file at first." %}').removeClass('hide');
if (!$.trim($('#upload-file-list').html())) { // when choose a file repeatedly, $('#upload-file-form input[type="file"]').val() is empty, so don't use that to check
$('#upload-file-form .error').html("{% trans "Please choose a file at first." %}").removeClass('hide');
return false;
}