mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
[repo] fixed file-upload bug
This commit is contained in:
@@ -47,8 +47,8 @@ function submitAndShowProgress(form, upload_progress_con) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$('#upload-file-form .submit').click(function () {
|
$('#upload-file-form .submit').click(function () {
|
||||||
if (!$.trim($('#upload-file-form input[type=file]').val())) {
|
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');
|
$('#upload-file-form .error').html("{% trans "Please choose a file at first." %}").removeClass('hide');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user