|
@@ -135,11 +135,14 @@ file that was distributed with this source code.
|
|
|
<script type="text/javascript">
|
|
|
jQuery(document).ready(function($){
|
|
|
$('#list_batch_checkbox').click(function(){
|
|
|
- $(this).closest('table').find("td input[type='checkbox']").attr('checked', $(this).is(':checked'));
|
|
|
+ $(this).closest('table').find("td input[type='checkbox']").attr('checked', $(this).is(':checked')).parent().parent().toggleClass('sonata-ba-list-row-selected', $(this).is(':checked'));
|
|
|
});
|
|
|
$('.delete_link').click(function(e){
|
|
|
if (!confirm('{% trans from 'SonataAdminBundle' %}confirm_msg{% endtrans %}')) e.preventDefault();
|
|
|
});
|
|
|
+ $("td.sonata-ba-list-field-batch input[type='checkbox']").change(function(){
|
|
|
+ $(this).parent().parent().toggleClass('sonata-ba-list-row-selected', $(this).is(':checked'));
|
|
|
+ });
|
|
|
});
|
|
|
</script>
|
|
|
|