From 303db9ed07259e0880e9400aa628d4ea67fbf88d Mon Sep 17 00:00:00 2001 From: Production User Date: Tue, 24 Nov 2015 13:52:59 -0500 Subject: [PATCH] combine lists --- js/CXGN/List.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/js/CXGN/List.js b/js/CXGN/List.js index 5f76317d8..4f056dc43 100644 --- a/js/CXGN/List.js +++ b/js/CXGN/List.js @@ -367,11 +367,11 @@ CXGN.List.prototype = { selected.push($(this).attr('value')); }); - list_group_select_action_html = '
For Selected Lists:
'; + list_group_select_action_html = '
For Selected Lists:
'; if (total == 1) { list_group_select_action_html += 'DeleteMake PublicMake Private'; } else if (total > 1) { - list_group_select_action_html += 'DeleteMake PublicMake PrivateCombine'; + list_group_select_action_html += 'DeleteMake PublicMake Private

'; } list_group_select_action_html += '
'; } @@ -1123,3 +1123,24 @@ function makePrivateSelectedListGroup(list_ids) { lo.renderLists('list_dialog'); } } + +function combineSelectedListGroup(list_ids) { + var arrayLength = list_ids.length; + var list_name = jQuery('#new_combined_list_name').val(); + if (confirm('Combine selected lists into a new list called '+list_name+'?')) { + var lo = new CXGN.List(); + var new_list_id = lo.newList(list_name); + for (var i=0; i