Commit 61e620f9 authored by flothoni's avatar flothoni

database.js; Now the get_read function set a dowload directly from the current page

link to #1469
parent ae715cc2
Pipeline #67765 failed with stages
in 14 seconds
......@@ -134,7 +134,13 @@ Database.prototype = {
'config_id': self.m.db_key.config,
'grep_reads': window},
function(a) {
openAndFillNewTab("Your reads are ready. <a href='"+DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id+"'>Download them</a>");
var path_data = DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id
var dlAnchorElem = document.getElementById("dlAnchor_data-area");
dlAnchorElem.setAttribute("href", path_data );
console.log( dlAnchorElem )
dlAnchorElem.setAttribute("download", `results_file_id_${a.result_id}_${sequence_file_id}.fa`);
dlAnchorElem.click();
// openAndFillNewTab("Your reads are ready. <a href='"+DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id+"'>Download them</a>");
});
},
......
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