From 3ff17fe4789fe8d7d1b84c9db55b148fbd9a0418 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 14 Jun 2016 11:16:41 +0000 Subject: Make species section in data structure --- wqflask/wqflask/static/new/javascript/dataset_select_menu.js | 7 +++---- 1 file changed, 3 insertions(+), 4 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 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); }); -- cgit v1.2.3