Commit 663f34de authored by flothoni's avatar flothoni

database & clone.js; update name of get reads btn; disable it when clicked

link to #1469
parent 2795b266
......@@ -1215,7 +1215,7 @@ Clone.prototype = {
html += " "
call_reads = "db.get_read('" + this.id + "', '"+ this.index + "', '"+ j + "', "+ this.m.samples.sequence_file_id[this.m.samples.order[j]] + ')';
console.log(call_reads)
html += " <button class='button' onclick=\"" + call_reads + "\" id='btn_get_reads' class='"+db.get_reads_btn_class(j, this.index)+"'> get reads </button>"
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 += "</td>"
}
......
......@@ -141,6 +141,8 @@ Database.prototype = {
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
document.getElementById(btn_id).classList.add("disabledClass")
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