aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-08-23 13:41:12 -0500
committerzsloan2019-08-23 13:41:12 -0500
commitbffaa1989438dc919dd03b1b6273a2f69ed836ea (patch)
treedc96e50350e491876b84412c0b08e701e91a001d /wqflask
parent9c8de54a30dc841dcabc43ef433102468746e285 (diff)
downloadgenenetwork2-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.py2
-rw-r--r--wqflask/wqflask/static/new/javascript/init_genome_browser.js6
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