From bffaa1989438dc919dd03b1b6273a2f69ed836ea Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 23 Aug 2019 13:41:12 -0500 Subject: Genome Browser only loads when the tab is clicked now, for slower computers/browsers --- wqflask/wqflask/show_trait/show_trait.py | 2 +- wqflask/wqflask/static/new/javascript/init_genome_browser.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py index 880a291f..3b057427 100644 --- a/wqflask/wqflask/show_trait/show_trait.py +++ b/wqflask/wqflask/show_trait/show_trait.py @@ -273,7 +273,7 @@ class ShowTrait(object): self.panther_link = webqtlConfig.PANTHER_URL % self.this_trait.symbol self.ebi_gwas_link = webqtlConfig.EBIGWAS_URL % self.this_trait.symbol self.protein_atlas_link = webqtlConfig.PROTEIN_ATLAS_URL % self.this_trait.symbol - self.open_targets_link = webqtlConfig.OPEN_TARGETS_URL % self.this_trait.symbol + #self.open_targets_link = webqtlConfig.OPEN_TARGETS_URL % self.this_trait.symbol if self.dataset.group.species == "mouse" or self.dataset.group.species == "human": if self.dataset.group.species == "mouse": diff --git a/wqflask/wqflask/static/new/javascript/init_genome_browser.js b/wqflask/wqflask/static/new/javascript/init_genome_browser.js index c4f91023..07bdaaeb 100644 --- a/wqflask/wqflask/static/new/javascript/init_genome_browser.js +++ b/wqflask/wqflask/static/new/javascript/init_genome_browser.js @@ -69,8 +69,10 @@ var config = }, // initialChrs: { left: "1", right: "5" } coordinateSystem: coordinateSystem, - }; +}; -GenomeBrowser.main(config)(); +$('#browser_tab').click(function() { + GenomeBrowser.main(config)(); +}); document.getElementById("controls").style.visibility = "visible"; \ No newline at end of file -- cgit v1.2.3