diff --git a/lib/imp.js b/lib/imp.js index 0f8a2cd89d1dc30c80a8fc81a30b9e85ac918ec2..936c83d00c43b8bedce8781382589ebbc6dd039b 100644 --- a/lib/imp.js +++ b/lib/imp.js @@ -316,6 +316,13 @@ $('.right.carousel-control').click(function(){ $('#tabs li:first > a').tab('show'); +// load kronaplot if people click on tab. Make a lot of errors if loaded from begenning. +$('#annottab').on('show.bs.tab', function (e) { + if($("#MG-kronaplot").attr('src') === undefined){ + $("#ifr-kronaplot").attr('src', 'Analysis/results/MG.gene_kegg_krona.html'); + } +}); + //load html tables // $(".table-result").each(function(idx, node) { // var ident = node.id;