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
|
# enable checkbox bulk selection
|
||||||
if data.checkbox
|
if data.checkbox
|
||||||
table.delegate('[name="bulk_all"]', 'click', (e) ->
|
table.delegate('[name="bulk_all"]', 'click', (e) ->
|
||||||
if $(e.target).attr('checked')
|
if $(e.target).prop('checked')
|
||||||
$(e.target).parents().find('[name="bulk"]').attr( 'checked', true );
|
$(e.target).parents().find('[name="bulk"]').prop( 'checked', true );
|
||||||
else
|
else
|
||||||
$(e.target).parents().find('[name="bulk"]').attr( 'checked', false );
|
$(e.target).parents().find('[name="bulk"]').prop( 'checked', false );
|
||||||
)
|
)
|
||||||
|
|
||||||
return table
|
return table
|
||||||
|
|
Loading…
Reference in a new issue