<tr class="listrow[% loop.count % 2 %]">
<td align="center">
[%- IF invoice.vc_bank_info_ok %]
- <input type="checkbox" name="bank_transfers[].selected" value="1">
+ <input type="checkbox" name="bank_transfers[].selected" value="1"[% IF invoice.checked %] checked[% END %]>
[%- END %]
</td>
<td>
<script type="text/javascript">
<!--
- $(document).ready(function() {
- $("#select_all").click(function() {
- var checked = $(this).attr('checked');
- $('INPUT[name="bank_transfers[].selected"]').each(function() {
- $(this).attr('checked', checked);
- });
- });
+ $(function() {
+ $("#select_all").checkall('INPUT[name="bank_transfers[].selected"]');
});
-->
</script>
-