From d5a7ee583c2d0873b916be35a5e409536c1e0691 Mon Sep 17 00:00:00 2001 From: Yohan Jarosz <yohanjarosz@yahoo.fr> Date: Tue, 21 Jul 2015 16:56:34 +0200 Subject: [PATCH] defer kronaplot loading --- lib/imp.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/imp.js b/lib/imp.js index 0f8a2cd..936c83d 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; -- GitLab