Commit 2b6c4012 authored by flothoni's avatar flothoni

database.js; change positon of variable declaration

link to #1469
parent dd985372
Pipeline #68534 failed with stages
in 15 minutes and 44 seconds
......@@ -138,9 +138,7 @@ Database.prototype = {
'config_id': self.m.db_key.config,
'grep_reads': window},
function(a) {
var path_data = DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id
var anchor_id = "dlAnchor_get_reads_"+a.result_id
var file_name = "reads__"+clone_id+"__file_id_"+a.result_id+"_"+sequence_file_id+".fa"
// Create anchor here, so each clones/sample will have an specific anchor
// Allow to launch multiple 'get_reads'
......@@ -149,8 +147,10 @@ Database.prototype = {
anchor.style.display = "none"
anchors.appendChild(anchor)
console.log( anchor )
// Link to result file and launch download
// 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"
anchor.setAttribute("href", path_data);
anchor.setAttribute("download", file_name);
self.ajax_indicator_stop()
......
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