aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorPjotr Prins2016-06-14 11:16:41 +0000
committerPjotr Prins2016-06-14 11:16:41 +0000
commit3ff17fe4789fe8d7d1b84c9db55b148fbd9a0418 (patch)
treea1b8c876fb2cbe052f9a9c867c18fdd9e79b430e /wqflask
parent8a3cd1d9c2908a60de521424622dfae04ba7c297 (diff)
downloadgenenetwork2-3ff17fe4789fe8d7d1b84c9db55b148fbd9a0418.tar.gz
Make species section in data structure
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
index 473e920e..9b6147c5 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
@@ -10,17 +10,16 @@ $(function() {
dataType: 'json',
success: process_json
});
- $.getJSON("http://localhost:8880/int/menu/species",
+ $.getJSON("http://localhost:8880/int/menu/main",
function(data) {
console.log("***** GOT DATA from GN_SERVER ****");
- console.log(data[0]);
- var species = data.map(function(item) {
+ console.log(data);
+ var species = data["species"].map(function(item) {
console.log(item)
menu = [item[1],item[2]]
console.log(menu)
return menu;
});
-
console.log(species);
redo_dropdown($('#species'), species);
});