aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
index 968cda03..dcf1ae6f 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
@@ -34,6 +34,7 @@ $(function() {
var populate_group = function() {
var species = $('#species').val();
var groups = gndata.groups[species].map(function(item) {
+ console.log("group:",item);
return item.slice(1,3);
})
redo_dropdown($('#group'), groups);
@@ -44,9 +45,13 @@ $(function() {
var populate_type = function() {
var species = $('#species').val();
var group = $('#group').val();
- var type_list = gndata.types[species][group].map(function(item) {
+ // var type_list = gndata.types[species][group].map(function(item) {
+ // return [item[1],item[1]];
+ //})
+ var type_list = gndata.types[species][1][group].map(function(item) {
return [item,item];
- })
+ });
+
redo_dropdown($('#type'), type_list);
return populate_dataset();
};