diff options
author | flop25 <flop25@piwigo.org> | 2012-12-04 22:23:54 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2012-12-04 22:23:54 +0000 |
commit | c988181366430a45a8bb799817a22255a38fb284 (patch) | |
tree | 205897e9e02f0877cdb3e8d31a26f4f3d7536da9 /admin/themes/default | |
parent | 94f17094cbdfb76e71236f949b9dc32d8606c7e9 (diff) |
bug:2425
New interface like the Batch Mananger :
rename, delete, duplicate and toggle-default
TODO soon merge & finalisation of the interface
git-svn-id: http://piwigo.org/svn/trunk@19286 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/group_list.tpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/themes/default/template/group_list.tpl b/admin/themes/default/template/group_list.tpl index d629dd4c0..56809720f 100644 --- a/admin/themes/default/template/group_list.tpl +++ b/admin/themes/default/template/group_list.tpl @@ -3,10 +3,10 @@ $(document).ready(function() { $(".grp_action").hide(); - $("input[name=group_selection]").click(function() { + $("input.group_selection").click(function() { var nbSelected = 0; - nbSelected = $("input[name=group_selection]").filter(':checked').length; + nbSelected = $("input.group_selection").filter(':checked').length; if (nbSelected == 0) { $("#permitAction").hide(); @@ -76,7 +76,7 @@ $(document).ready(function() { {if not empty($groups)} {foreach from=$groups item=group name=group_loop} <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> - <td><input name="group_selection" type="checkbox" value="{$group.ID}"></td> + <td><input class="group_selection" name="group_selection[]" type="checkbox" value="{$group.ID}"></td> <td>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i></td> <td><a href="{$group.U_MEMBERS}">{$group.MEMBERS}</a></td> <td style="text-align:center;"> @@ -96,8 +96,8 @@ $(document).ready(function() { <fieldset id="action"> <legend>{'Action'|@translate}</legend> - <div id="forbidAction"{if count($selection) != 0} style="display:none"{/if}>{'No group selected, no action possible.'|@translate}</div> - <div id="permitAction"{if count($selection) == 0} style="display:none"{/if}> + <div id="forbidAction">{'No group selected, no action possible.'|@translate}</div> + <div id="permitAction" style="display:none"> <select name="selectAction"> <option value="-1">{'Choose an action'|@translate}</option> |