diff options
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 = "" |