aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorPjotr Prins2016-06-16 08:38:05 +0000
committerPjotr Prins2016-06-16 08:38:05 +0000
commit9cc28585801de015f24ca7b596e20893383717e9 (patch)
treeaa36b82812beda1bff31d0dad3a167ab3dfa60e1 /wqflask
parent8a46577d245406531fe4558536130bc0c0cf9170 (diff)
downloadgenenetwork2-9cc28585801de015f24ca7b596e20893383717e9.tar.gz
Menu: removed one item from JSON
Diffstat (limited to 'wqflask')
-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();
};