Fixed #19 - deselect bulk action box if one item got deselected.
This commit is contained in:
parent
432b78f02b
commit
05917f6fd8
1 changed files with 6 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue