diff --git a/js/source/entries/toolcompatibility.js b/js/source/entries/toolcompatibility.js index 1ff67d9873..91fc1e2048 100644 --- a/js/source/entries/toolcompatibility.js +++ b/js/source/entries/toolcompatibility.js @@ -4,7 +4,10 @@ const abbreviations = { 'pca' : 'Population Structure', 'cluster' : 'Clustering', 'kinship' : 'Kinship & Inbreeding', - 'corr' : 'Correlation' + 'corr' : 'Correlation', + 'SolGWAS' : 'GWAS', + 'Heritability' : 'Heritability', + 'Stability' : 'Stability' } function substituteCompatibilities(abbreviation) { @@ -56,4 +59,31 @@ jQuery(document).ready(function() { substituteCompatibilities(analysis_abbr); }); }); -}); \ No newline at end of file +}); + +jQuery(document).ready(function() { + + async function sleep_before_draw(ms) { + await new Promise(resolve => setTimeout(resolve, ms)); + + jQuery('[id^=html-select-dataset-table-]').each(function(index,element){ + var table_id = element.id; + var title = jQuery('#pagetitle_h3').text(); + var table = jQuery(`#${table_id}`); + + substituteCompatibilities(title); + + table.on('draw.dt', function() { + substituteCompatibilities(title); + }); + }); + } + + sleep_before_draw(1000); + sleep_before_draw(2000); + sleep_before_draw(3500); + sleep_before_draw(5000); + sleep_before_draw(7500); + sleep_before_draw(10000); + sleep_before_draw(15000); +}); diff --git a/lib/SGN/Controller/AJAX/HTMLSelect.pm b/lib/SGN/Controller/AJAX/HTMLSelect.pm index 83dacb3138..74f2b4aaad 100644 --- a/lib/SGN/Controller/AJAX/HTMLSelect.pm +++ b/lib/SGN/Controller/AJAX/HTMLSelect.pm @@ -1712,7 +1712,7 @@ sub get_datasets_select :Path('/ajax/html/select/datasets') Args(0) { 'genotyping_protocols' => 'nd_protocol_ids_2_protocols' ); - my $html = '
Select | Dataset Name | Contents |
---|
Select | Dataset Name | Contents | Compatibility |
---|---|---|---|
'.$ds->{name}.' | '; @@ -1744,7 +1744,7 @@ sub get_datasets_select :Path('/ajax/html/select/datasets') Args(0) { $html .= " | "; } $html .= "
Working...