aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
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);
});