Fixed #19 - deselect bulk action box if one item got deselected.

This commit is contained in:
Martin Edenhofer 2013-01-04 11:13:45 +01:00
parent 432b78f02b
commit 05917f6fd8

View file

@ -227,6 +227,12 @@ class Index extends App.Controller
@el.find('.bulk-action').removeClass('hide') @el.find('.bulk-action').removeClass('hide')
) )
# deselect bulk_all if one item is uncheck observ
@el.find('.table-overview').delegate('[name="bulk"]', 'click', (e) =>
if !$(e.target).attr('checked')
$(e.target).parents().find('[name="bulk_all"]').attr('checked', false)
)
page: (e) => page: (e) =>
e.preventDefault() e.preventDefault()
id = $(e.target).data('id') id = $(e.target).data('id')