Commit 9e33fea7 authored by Sebastien Carrere's avatar Sebastien Carrere

Correction de bug fichier orthomcl precharge non envoye au CLI

parent fbb7234f
......@@ -44,23 +44,37 @@ sub Upload
my $tmp_dir = $o_webbuilder->GetSessionPath();
my $uploaded_file = $tmp_dir . "/" . basename($original_path);
#print STDERR "DEBUG-SEB:$original_path, $uploaded_file\n";
#~ print STDERR "DEBUG-SEB:" , Dumper \$o_param, "\n";
File::Copy::move($original_path, $uploaded_file);
my @a_tmp = split(/\./, $original_file_name);
my $code = $a_tmp[0];
$code =~ s/\s/_/g;
%h_param = (
if ($o_param->IsDefined('pathOrthoMcl'))
{
%h_param = (
'success' => 1,
'message' => 'file uploaded',
'path' => $uploaded_file,
'original_file_name' => "$original_file_name"
);
}
else
{
%h_param = (
'success' => 1,
'message' => 'file uploaded',
'path' => $uploaded_file,
'code' => $code,
'original_file_name' => "$original_file_name"
);
}
}
#~ print STDERR "DEBUG-SEB:" , Dumper \%h_param, "\n";
print to_json(\%h_param);
return;
......
......@@ -38,6 +38,7 @@ Ext.define('BP.controller.C_LaunchAnalysis', {
var values = form.getValues();
if (typeof values.code == "string") {
values.code = [ values.code ];
......@@ -57,7 +58,7 @@ Ext.define('BP.controller.C_LaunchAnalysis', {
}
}
console.log(values);
//~ console.log(values);
var json = {};
......
......@@ -43,9 +43,11 @@ Ext.define('BP.controller.C_Upload', {
if (fileFieldSet.uploadAction == "uploadOrthoMclFile") {
var parameterField = Ext.ComponentQuery.query("fieldset", fileFieldSet.up("fieldset"))[0];
var parameterFields = Ext.ComponentQuery.query("field", fileFieldSet.up("fieldset"));
parameterField.disable(true);
Ext.each(parameterFields, function(field) {
field.setValue("");
});
}
......
......@@ -126,7 +126,7 @@ Ext
qtip : "Percent Identity Cutoff <0-100> in ortholog clustering, 0 (DEFAULT)",
minValue : 0,
maxValue : 100,
value : 80,
value : 0,
allowBlank : false
},
{
......@@ -174,4 +174,4 @@ Ext
]
});
\ No newline at end of file
});
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