#65: Don't start uploading if no file was selected
This commit is contained in:
@@ -22923,6 +22923,13 @@ function UploadPhotosViewModel(album_id, queue_token, language, urls) {
|
||||
// Get the selected files
|
||||
var files = fileSelect[0].files;
|
||||
|
||||
if (files.length === 0)
|
||||
{
|
||||
alert(language.no_file_selected);
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Reset statistics
|
||||
this.currentStatus = '';
|
||||
this.statusMessages = [];
|
||||
|
||||
2
public/js/blue-twilight.min.js
vendored
2
public/js/blue-twilight.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user