Commit 0c2aa331 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

form_builder.js: File field is required only when not hidden

parent 0ea6a11f
Pipeline #135249 failed with stages
in 7 minutes and 11 seconds
......@@ -351,7 +351,7 @@ FileFormBuilder.prototype.build_file_field = function(id, hidden) {
var i = this.build_input('upload_' + id, 'upload_field', 'file'+id, 'file', 'file');
if (this.source) {
i.disabled = true;
} else {
} else if (! hidden) {
i.required = true;
}
i.title = "(.fa, .fastq, .fa.gz, .fastq.gz, .clntab)";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment