Commit 5c8531c4 authored by flothoni's avatar flothoni Committed by Mikaël Salson
Browse files

tools.js; create a fct to open a new tab and fill it with given content

link to #2876
parent 62b86286
......@@ -679,3 +679,18 @@ function locus_cmp(valA, valB){
}
return 0
}
/**
* Open a new tab and put content in it.
* This function is use to show fasta export
* @param {String} content Clones as fasta format
*/
function openAndFillNewTab (content){
var w = window.open("", "_blank", "selected=0, toolbar=yes, scrollbars=yes, resizable=yes");
var result = $('<div/>', {
html: content
}).appendTo(w.document.body);
return
}
\ No newline at end of file
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