aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-06-29 12:55:13 -0500
committerzsloan2020-06-29 12:55:13 -0500
commitb7d3b90bb9a074200e440eaeb22b782053efc819 (patch)
tree4b8d9f2c15025da41699aac067ab1a9d31589916
parentf1a539098884eb99191809dac7fba823872270ae (diff)
downloadgenenetwork2-b7d3b90bb9a074200e440eaeb22b782053efc819.tar.gz
Fixed remaining issue with the logic for creating the type dropdown option groups for the home page search
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js3
1 files changed, 3 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 d5711f6d..d172907a 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
@@ -119,6 +119,9 @@ redo_dropdown = function(dropdown, items) {
_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 == type_family_list.length - 1){
+ _results.push(dropdown.append(this_opt_group))
+ }
} else {
_results.push(dropdown.append(this_opt_group))
current_family = ""