Commit f7fad4a3 authored by Vidjil Team's avatar Vidjil Team

database.js; get_reads, modify the anchor content and id

link to 1469
parent f4c2b517
Pipeline #68587 failed with stages
in 15 minutes and 50 seconds
......@@ -150,9 +150,9 @@ Database.prototype = {
// Create anchor here, so each clones/sample will have an specific anchor
// Allow to launch multiple 'get_reads'
var anchors = document.getElementById('dlAnchors')
var anchor_id = "dlAnchor_get_reads_"+a.result_id
var anchor_id = "dlAnchor_get_reads_"+sequence_file_id+"_"+clone_id
var anchor = document.createElement("a", anchor_id)
anchor.innerHTML = "timapoint "+timepoint+"; clone "+m.clones[clone_id]
anchor.innerHTML = "timapoint "+timepoint+"; clone "+m.clones[clone_id].name
anchor.classList.add = "disabledClass"
// anchor.style.display = "none"
anchors.appendChild(anchor)
......@@ -165,7 +165,7 @@ Database.prototype = {
'grep_reads': window},
function(a) {
var anchors = document.getElementById("dlAnchor_get_reads_"+a.result_id)
var anchors = document.getElementById("dlAnchor_get_reads_"+sequence_file_id+"_"+clone_id)
// Link to result file and launch download
var path_data = DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id
var file_name = "reads__"+clone_id+"__file_id_"+"_"+sequence_file_id+".fa"
......
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