Commit 999c527a authored by lcottret's avatar lcottret

Correction du bug View results quand pas d'iprscan

parent 2098b555
......@@ -31,7 +31,7 @@ Ext
var url_base = data.url;
var jsonPath = data.url + "/results.json";
var win_wait = Ext.create("Ext.window.MessageBox");
var win_alert = Ext.create("Ext.window.MessageBox");
......@@ -158,16 +158,24 @@ Ext
var dataProteomes = [];
for ( var code in proteomes) {
var proteome = proteomes[code];
proteome["code"] = code;
proteome["fasta"] = this
.createLink(
proteome["fasta"],
url_base);
proteome["iprscan"] = this
.createLink(
proteome["iprscan"],
url_base);
proteome["iprscan"] = "";
if (Ext
.isDefined(proteome["iprscan"])) {
proteome["iprscan"] = this
.createLink(
proteome["iprscan"],
url_base);
}
Ext.Array.push(
dataProteomes,
proteome);
......@@ -216,15 +224,17 @@ Ext
var new_file = this
.createLink(
file,
url_base+"/"+result.directory);
url_base
+ "/"
+ result.directory);
Ext.Array
.push(
new_files,
new_file);
}, this);
},
this);
result.files = new_files;
}, this);
var storeResults = Ext.create(
"BP.store.S_Result", {
......@@ -275,4 +285,3 @@ Ext
}
});
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