Only open bulk action with filter checkbox

This commit is contained in:
Rob Garrison 2019-01-02 20:51:43 -06:00
parent 9fd4e0f57d
commit e547d93fdc

View File

@ -95,7 +95,7 @@ const bulk = {
// total is undefined until initialized // total is undefined until initialized
if (installed.dataset.total) { if (installed.dataset.total) {
// ignore filter checkboxes // ignore filter checkboxes
if (target.type === 'checkbox' && !target.dataset.filter && target.closest('#tools-wrapper, .entry')) { if (target.type === 'checkbox' && target.closest('.toggle-all, .entry-filter')) {
handleEvent.toggleBulkActions({hidden: false}); handleEvent.toggleBulkActions({hidden: false});
const bulk = $('#toggle-all-filters'); const bulk = $('#toggle-all-filters');
const state = target.checked; const state = target.checked;