Skip to content

batch actions JS error for nested table_for in index page #1854

@follmann

Description

@follmann

Since I use nested table_for I had an error that the CheckboxToggler js code threw:
Error: 'toggle all' checkbox not found

That rendered batch actions dysfunctional.

The culprit seems to be in batch_actions.js.coffee:

if $(".paginated_collection").find("table.index_table").length
  $(".paginated_collection table").tableCheckboxToggler()

should (probably) be:

if $(".paginated_collection").find("table.index_table").length
  $(".paginated_collection table.index_table").tableCheckboxToggler()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions