diff options
author | Pjotr Prins | 2016-06-14 11:16:41 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-14 11:16:41 +0000 |
commit | 3ff17fe4789fe8d7d1b84c9db55b148fbd9a0418 (patch) | |
tree | a1b8c876fb2cbe052f9a9c867c18fdd9e79b430e /wqflask | |
parent | 8a3cd1d9c2908a60de521424622dfae04ba7c297 (diff) | |
download | genenetwork2-3ff17fe4789fe8d7d1b84c9db55b148fbd9a0418.tar.gz |
Make species section in data structure
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/dataset_select_menu.js | 7 |
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); }); |