Sha256: c90c28a802bca659b381dba128e965852c5c85235356b6d26ab092f1c553678e
Contents?: true
Size: 600 Bytes
Versions: 14
Compression:
Stored size: 600 Bytes
Contents
class ActiveAdmin.TableCheckboxToggler extends ActiveAdmin.CheckboxToggler _init: -> super _bind: -> super @$container.find('tbody td').click (e)=> @_didClickCell(e.target) if e.target.type isnt 'checkbox' _didChangeCheckbox: (checkbox) -> super $(checkbox).parents('tr').toggleClass 'selected', checkbox.checked _didChangeToggleAllCheckbox: -> @$container.find('tbody tr').toggleClass 'selected', super _didClickCell: (cell) -> $(cell).parent('tr').find(':checkbox').click() $.widget.bridge 'tableCheckboxToggler', ActiveAdmin.TableCheckboxToggler
Version data entries
14 entries across 14 versions & 2 rubygems