Commit a2296ee4 authored by flothoni's avatar flothoni Committed by Vidjil Team

clone,database.js: grep reads needs the clone id

parent 771a9644
......@@ -1213,7 +1213,8 @@ Clone.prototype = {
}
if (typeof this.m.db_key.config != 'undefined' ) {
html += " "
call_reads = "db.get_read('" + this.id + "', "+ this.m.samples.sequence_file_id[this.m.samples.order[j]] + ')';
var sample_set_id = this.m.samples.sequence_file_id[this.m.samples.order[j]];
call_reads = "db.get_read('" + this.id + "', "+ this.index +", " + sample_set_id + ')';
html += '<i onclick="' + call_reads + '" class="icon-down" title="Download reads from this clone"></i>';
}
html += "</td>"
......
......@@ -126,7 +126,7 @@ Database.prototype = {
})
},
get_read: function(window, sequence_file_id) {
get_read: function(window, clone_id, sequence_file_id) {
var self = this;
self.callProcess('default/run_request',
{'sequence_file_id': sequence_file_id,
......
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