diff options
author | zsloan | 2019-08-23 13:41:12 -0500 |
---|---|---|
committer | zsloan | 2019-08-23 13:41:12 -0500 |
commit | bffaa1989438dc919dd03b1b6273a2f69ed836ea (patch) | |
tree | dc96e50350e491876b84412c0b08e701e91a001d /wqflask | |
parent | 9c8de54a30dc841dcabc43ef433102468746e285 (diff) | |
download | genenetwork2-bffaa1989438dc919dd03b1b6273a2f69ed836ea.tar.gz |
Genome Browser only loads when the tab is clicked now, for slower computers/browsers
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/show_trait/show_trait.py | 2 | ||||
-rw-r--r-- | 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 |