aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorPjotr Prins2016-06-16 06:38:11 +0000
committerPjotr Prins2016-06-16 06:38:11 +0000
commit2bea415cc03d353b945c8033593c119bb381d164 (patch)
tree323b0186dad0d2546c09bd206f32571054617c11 /wqflask
parent7c438d0eccb39839f8ac2ac764d8243c6d352506 (diff)
downloadgenenetwork2-2bea415cc03d353b945c8033593c119bb381d164.tar.gz
Menu: populate datasets dropdown
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu.js12
1 files changed, 8 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 31cb5dab..2c4246f5 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu.js
@@ -44,7 +44,7 @@ $(function() {
var species = $('#species').val();
var group = $('#group').val();
// var type_list = this.jdata.types[species][group];
- console.log(species,group,gndata.types[species][group])
+ // console.log(species,group,gndata.types[species][group])
var type_list = gndata.types[species][group].map(function(item) {
return [item,item];
})
@@ -57,9 +57,13 @@ $(function() {
var species = $('#species').val();
var group = $('#group').val();
var type = $('#type').val();
- console.log("sgt:", species, group, type);
- dataset_list = this.jdata.datasets[species][group][type];
- console.log("pop_dataset:", dataset_list);
+ // console.log("sgt:", species, group, type);
+ // dataset_list = this.jdata.datasets[species][group][type];
+ // console.log("pop_dataset:", dataset_list);
+ var dataset_list = gndata.datasets[species][group][type].map(function(item) {
+ return item.slice(1,3);
+ })
+
return redo_dropdown($('#dataset'), dataset_list);
};
window.populate_dataset = populate_dataset;