From 33ba70bc029cb79e61333615564c94046485b7c4 Mon Sep 17 00:00:00 2001 From: Felix Wiegand Date: Wed, 30 Oct 2024 14:08:10 +0100 Subject: [PATCH] fix: Fix gene card link formatter for datavzrd report and update linkout styles --- workflow/scripts/gene_card_link_formatter.js | 42 ++++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/workflow/scripts/gene_card_link_formatter.js b/workflow/scripts/gene_card_link_formatter.js index 5887acde..72ca303f 100644 --- a/workflow/scripts/gene_card_link_formatter.js +++ b/workflow/scripts/gene_card_link_formatter.js @@ -1,15 +1,31 @@ function gene_card_link_formatter(value, row) { - $(function () { - $('[data-toggle="tooltip"]').tooltip() - }); - let genes = value.split(","); - let rows = ""; - for (let g of genes) { - rows = `${rows}${g}`; - }; - let table = `
${rows}
Genes
`; - let button = ` - - `; - return button; + let genes = value.split(","); + let rows = ""; + for (let g of genes) { + rows += ` + + ${g} + + `; + } + + let table = `
+ + + + + + + + ${rows} + +
Genes
+
`; + + let button = ` + + + `; + + return button; }