Ignore:
Timestamp:
Dec 4, 2012, 11:23:54 PM (11 years ago)
Author:
flop25
Message:

bug:2425
New interface like the Batch Mananger :
rename, delete, duplicate and toggle-default

TODO soon merge & finalisation of the interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/group_list.tpl

    r19230 r19286  
    44
    55  $(".grp_action").hide();
    6   $("input[name=group_selection]").click(function() {
     6  $("input.group_selection").click(function() {
    77
    88    var nbSelected = 0;
    9     nbSelected = $("input[name=group_selection]").filter(':checked').length;
     9    nbSelected = $("input.group_selection").filter(':checked').length;
    1010
    1111    if (nbSelected == 0) {
     
    7777    {foreach from=$groups item=group name=group_loop}
    7878    <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
    79       <td><input name="group_selection" type="checkbox" value="{$group.ID}"></td>
     79      <td><input class="group_selection" name="group_selection[]" type="checkbox" value="{$group.ID}"></td>
    8080      <td>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i></td>
    8181      <td><a href="{$group.U_MEMBERS}">{$group.MEMBERS}</a></td>
     
    9797  <fieldset id="action">
    9898    <legend>{'Action'|@translate}</legend>
    99       <div id="forbidAction"{if count($selection) != 0} style="display:none"{/if}>{'No group selected, no action possible.'|@translate}</div>
    100       <div id="permitAction"{if count($selection) == 0} style="display:none"{/if}>
     99      <div id="forbidAction">{'No group selected, no action possible.'|@translate}</div>
     100      <div id="permitAction" style="display:none">
    101101
    102102        <select name="selectAction">
Note: See TracChangeset for help on using the changeset viewer.