Changeset - 2d7f6fddb9cf
[Not reviewed]
default
0 2 0
Mads Kiilerich - 11 years ago 2015-01-06 00:54:35
madski@unity3d.com
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.
2 files changed with 0 insertions and 13 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -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){
kallithea/templates/admin/user_groups/user_group_edit_settings.html
Show inline comments
 
@@ -39,10 +39,6 @@ ${h.form(url('users_group', id=c.user_gr
 
                                            <div style="float:left">
 
                                                <div class="text" style="padding: 0px 0px 6px;">${_('Chosen group members')}</div>
 
                                                ${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")}
 
                                               <div id="remove_all_elements" style="cursor:pointer;text-align:center;margin: 4px; ">
 
                                                   ${_('Remove all elements')}
 
                                                   <i style="cursor:pointer; font-size: 16px;position: relative; bottom: -2px; padding: 2px" class="icon-right-open"></i>
 
                                               </div>
 
                                            </div>
 
                                            <div style="float:left;width:20px;padding-top:50px">
 
                                                <i style="cursor:pointer; padding: 4px; font-size: 16px" id="add_element" class="icon-left-open"></i>
 
@@ -52,9 +48,6 @@ ${h.form(url('users_group', id=c.user_gr
 
                                            <div style="float:left">
 
                                                 <div class="text" style="padding: 0px 0px 6px;">${_('Available members')}</div>
 
                                                 ${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")}
 
                                                 <div id="add_all_elements" style="cursor:pointer;text-align:center;margin: 4px;">
 
                                                     <i style="cursor:pointer;font-size: 16px;position: relative; bottom: -2px; padding: 4px" class="icon-left-open"></i>${_('Add all elements')}
 
                                                 </div>
 
                                            </div>
 
                                        </div>
 
                                    </td>
0 comments (0 inline, 0 general)