Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters are not accessible if batch actions are disabled #9

Open
RobertAudi opened this issue Jul 22, 2021 · 0 comments
Open

Filters are not accessible if batch actions are disabled #9

RobertAudi opened this issue Jul 22, 2021 · 0 comments

Comments

@RobertAudi
Copy link

RobertAudi commented Jul 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant