aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-11-08 16:05:01 -0600
committerzsloan2019-11-08 16:05:01 -0600
commit1e45c85fe9f80b65f294059c4ecda50089d5980c (patch)
tree47afe88480cbce9cdef1f4f74fb39125560c2479
parent6bfc035729aaba60fcb080eebbf28f04b90ec8e9 (diff)
downloadgenenetwork2-1e45c85fe9f80b65f294059c4ecda50089d5980c.tar.gz
Fixed issue that caused a couple groups to not show up after change to have family names in dropdown
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js2
1 files changed, 2 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 b3af016c..da918a89 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
@@ -78,12 +78,14 @@ redo_dropdown = function(dropdown, items) {
if (item[2] != "None" && current_family == ""){
current_family = item[2]
this_opt_group = $("<optgroup label=\"" + item[2] + "\">")
+ 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]));
} 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]));
} else if (current_family != "" && this_opt_group != null && item[2] == "None"){
_results.push(dropdown.append(this_opt_group))
current_family = ""