# HG changeset patch # User Mads Kiilerich # Date 2015-01-06 00:54:35 # Node ID 2d7f6fddb9cfa7a80e924a332410e9d0aae25493 # Parent 28f890cf7c4db859b93f46eb3a6f602ea7f7f196 user groups: drop add/remove all buttons The buttons can easily mess the old selection up and do not add much value compared to multi select. diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -1778,12 +1778,6 @@ var MultiSelectWidget = function(selecte $('#remove_element').click(function(e){ $availableselect.append($selectedselect.children('option:selected')); }); - $('#add_all_elements').click(function(e){ - $selectedselect.append($availableselect.children('option')); - }); - $('#remove_all_elements').click(function(e){ - $availableselect.append($selectedselect.children('option')); - }); $('#'+form_id).submit(function(){ $selectedselect.children('option').each(function(i, e){ diff --git a/kallithea/templates/admin/user_groups/user_group_edit_settings.html b/kallithea/templates/admin/user_groups/user_group_edit_settings.html --- a/kallithea/templates/admin/user_groups/user_group_edit_settings.html +++ b/kallithea/templates/admin/user_groups/user_group_edit_settings.html @@ -39,10 +39,6 @@ ${h.form(url('users_group', id=c.user_gr
${_('Chosen group members')}
${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")} -
- ${_('Remove all elements')} - -
@@ -52,9 +48,6 @@ ${h.form(url('users_group', id=c.user_gr
${_('Available members')}
${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")} -
- ${_('Add all elements')} -