Fixed bulk selection.

This commit is contained in:
Martin Edenhofer 2013-09-18 22:56:25 +02:00
parent ddd20ae155
commit a43d16ec8e

View file

@ -127,10 +127,10 @@ class App.ControllerTable extends App.Controller
# enable checkbox bulk selection
if data.checkbox
table.delegate('[name="bulk_all"]', 'click', (e) ->
if $(e.target).attr('checked')
$(e.target).parents().find('[name="bulk"]').attr( 'checked', true );
if $(e.target).prop('checked')
$(e.target).parents().find('[name="bulk"]').prop( 'checked', true );
else
$(e.target).parents().find('[name="bulk"]').attr( 'checked', false );
$(e.target).parents().find('[name="bulk"]').prop( 'checked', false );
)
return table