Skip to content

Filters are not accessible if batch actions are disabled #9

@RobertAudi

Description

@RobertAudi

When batch actions are disabled the .table_tools div is not rendered. However the sidebar is unconditionnaly hidden using javascript here:

if (!window.location.search.includes('Filter')) {
$('div#sidebar').hide();
$('#main_content').css({ 'margin-right': '0px' });
$('a#toggleFilters').removeClass('epon');
}

The only way to show the sidebar is by clicking on the "Filters" button but it's never added to the DOM since the .table_tools element is missing:

$('#active_admin_content .table_tools').append('<a id="toggleFilters" href="#" class=\'epon\'>Filtres</a>');

Note that all sidebard are affected by this, not only the filters panel in the sidebar.

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