Fixed bulk selection.
This commit is contained in:
parent
ddd20ae155
commit
a43d16ec8e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue