aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-07-09 16:09:45 -0500
committerBonfaceKilz2020-07-24 03:46:20 +0300
commit7dae878c6635d77ab9bd489937410845c33ff7d2 (patch)
treec36d2a6a6f51b930509d6f9400e922b97317975d /wqflask
parent82929468a0769766cc874b18dbbf5acaa15bc6fc (diff)
downloadgenenetwork2-7dae878c6635d77ab9bd489937410845c33ff7d2.tar.gz
Fixed another issue with the drop-downs
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js b/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
index d172907a..48ffd731 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
@@ -81,11 +81,17 @@ redo_dropdown = function(dropdown, items) {
this_opt_group.append($("<option />").val(item[0]).text(item[1]));
} else if (current_family != "" && item[2] == current_family){
this_opt_group.append($("<option />").val(item[0]).text(item[1]));
+ if (_i == group_family_list.length - 1){
+ _results.push(dropdown.append(this_opt_group))
+ }
} else if (current_family != "" && item[2] != current_family && item[2] != "None"){
current_family = item[2]
_results.push(dropdown.append(this_opt_group))
this_opt_group = $("<optgroup label=\"" + current_family + "\">")
this_opt_group.append($("<option />").val(item[0]).text(item[1]));
+ if (_i == group_family_list.length - 1){
+ _results.push(dropdown.append(this_opt_group))
+ }
} else if (current_family != "" && this_opt_group != null && item[2] == "None"){
_results.push(dropdown.append(this_opt_group))
current_family = ""
@@ -109,6 +115,9 @@ redo_dropdown = function(dropdown, items) {
current_family = item[2]
this_opt_group = $("<optgroup label=\"" + item[2] + "\">")
this_opt_group.append($("<option />").val(item[0]).text(item[1]));
+ if (_i == type_family_list.length - 1){
+ _results.push(dropdown.append(this_opt_group))
+ }
} else if (current_family != "" && item[2] == current_family){
this_opt_group.append($("<option />").val(item[0]).text(item[1]));
if (_i == type_family_list.length - 1){