From 78e9c2d2d67302b728735b90a56fa1824c1ee447 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 23 Jun 2016 06:51:47 +0000 Subject: Pass GN_SERVER_URL into Javascript renderer of menu --- .../static/new/javascript/dataset_select_menu.js | 2 +- wqflask/wqflask/templates/index_page.html | 20 ++++++++++++-------- wqflask/wqflask/views.py | 4 ++-- 3 files changed, 15 insertions(+), 11 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js index d4110e11..43b0960c 100644 --- a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js +++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js @@ -4,7 +4,7 @@ $(function() { populate_species(); return apply_default(); }; - $.getJSON("http://localhost:8880/int/menu/main.json", + $.getJSON(gn_server_url+"/int/menu/main.json", function(data) { gndata = data; console.log("***** GOT DATA from GN_SERVER ****"); diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html index 9e029911..dc7e058c 100644 --- a/wqflask/wqflask/templates/index_page.html +++ b/wqflask/wqflask/templates/index_page.html @@ -7,15 +7,15 @@

GeneNetwork

-

Open source bioinformatics for systems genetics

+

Open source bioinformatics for systems genetics

-->
- + {{ flash_me() }} - +
@@ -90,7 +90,7 @@
-
+
Enter terms, genes, ID numbers in the Search field.
Use * or ? wildcards (Cyp*a?, synap*).
@@ -113,7 +113,7 @@
-
+
@@ -267,15 +267,19 @@ {%endblock%} {% block js %} + +