From a43d16ec8e289d296a6edf5be62ee2d10ef92745 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 18 Sep 2013 22:56:25 +0200 Subject: [PATCH] Fixed bulk selection. --- .../app/controllers/_application_controller_table.js.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee index b9e4dc504..278218aa0 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee @@ -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