Commit 62c6ceeb authored by flothoni's avatar flothoni

database & clone.js; replace timepoint by sample databzse id

link to #1469
parent 663f34de
......@@ -1213,9 +1213,10 @@ Clone.prototype = {
}
if ($('#debug_menu').is(':visible') && (typeof this.m.db_key.config != 'undefined' )) {
html += " "
call_reads = "db.get_read('" + this.id + "', '"+ this.index + "', '"+ j + "', "+ this.m.samples.sequence_file_id[this.m.samples.order[j]] + ')';
var id_db_sample = this.m.samples.sequence_file_id[this.m.samples.order[j]]
var call_reads = "db.get_read('" + this.id + "', '"+ this.index + "', '"+ j + "', "+ id_db_sample + ')';
console.log(call_reads)
html += " <button class='button' onclick=\"" + call_reads + "\" id='btn_get_reads_"+j+"_"+this.index+"' class='"+db.get_reads_btn_class(j, this.index)+"'> get reads </button>"
html += " <button class='button' onclick=\"" + call_reads + "\" id='btn_get_reads_"+id_db_sample+"_"+this.index+"' class='"+db.get_reads_btn_class(id_db_sample, this.index)+"'> get reads </button>"
}
html += "</td>"
}
......
......@@ -127,8 +127,8 @@ Database.prototype = {
})
},
get_reads_btn_class: function(timepoint, clone_id) {
if (this.list_clones_with_reads_getted.indexOf([timepoint, clone_id]) != -1){
get_reads_btn_class: function(sequence_file_id, clone_id) {
if (this.list_clones_with_reads_getted.indexOf([sequence_file_id, clone_id]) != -1){
return "disabledClass"
}
return ""
......@@ -140,8 +140,8 @@ Database.prototype = {
self.ajax_indicator_start()
var log = "Reads of clone " + clone_id + " will be exported. Please wait."
console.log({"type": "flash", "msg" : log, "priority": 2});
this.list_clones_with_reads_getted.push( [timepoint, clone_id] )
btn_id = "btn_get_reads_"+timepoint+"_"+clone_id
this.list_clones_with_reads_getted.push( [sequence_file_id, clone_id] )
btn_id = "btn_get_reads_"+sequence_file_id+"_"+clone_id
document.getElementById(btn_id).classList.add("disabledClass")
self.callProcess('default/run_request',
......
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