diff options
author | zsloan | 2020-07-06 14:49:16 -0500 |
---|---|---|
committer | zsloan | 2020-07-06 14:49:16 -0500 |
commit | 3a0ee1628b51ee34b7576ba63d9a05674d9d0760 (patch) | |
tree | 452240ecd2a2d4c0ec81f12f2bb19ef29aaa2126 /wqflask | |
parent | 445d976eed7dad4f94febe2b6c768ef6aa1e5acd (diff) | |
download | genenetwork2-3a0ee1628b51ee34b7576ba63d9a05674d9d0760.tar.gz |
Fixed remaining issue with the logic for making the categories for the Type drop-down on the home search page
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js | 3 |
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 = "" |