// fix list checkbox display for bulk actions

This commit is contained in:
tDidierjean
2011-11-03 16:10:32 +00:00
parent d413a92c3e
commit 32eca6e67f
3 changed files with 7 additions and 7 deletions
@@ -30,11 +30,11 @@
{if $index is odd}class="alt_row"{/if} {if $index is odd}class="alt_row"{/if}
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if} {if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
> >
{if isset($tr.has_bulk_actions) && $tr.has_bulk_actions} <td class="center">
<td class="center"> {if {$has_bulk_actions}}
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" /> <input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
</td> {/if}
{/if} </td>
{foreach $fields_display AS $key => $params} {foreach $fields_display AS $key => $params}
<td <td
{if isset($params.position)} {if isset($params.position)}
@@ -150,7 +150,7 @@
{if !$simple_header} {if !$simple_header}
<tr class="nodrag nodrop filter" style="height: 35px;"> <tr class="nodrag nodrop filter" style="height: 35px;">
<td class="center"> <td class="center">
{if $delete} {if $has_bulk_actions}
-- --
{/if} {/if}
</td> </td>
+2 -2
View File
@@ -215,11 +215,11 @@ class HelperListCore extends Helper
else if (method_exists($this, $method_name)) else if (method_exists($this, $method_name))
$this->_list[$index][$action] = $this->$method_name($token, $id); $this->_list[$index][$action] = $this->$method_name($token, $id);
// At least one bulk action is possible for this row
$this->_list[$index]['has_bulk_actions'] = true;
} }
} }
// @todo skip action for bulk actions
// $this->_list[$index]['has_bulk_actions'] = true;
foreach ($this->fieldsDisplay as $key => $params) foreach ($this->fieldsDisplay as $key => $params)
{ {