[fix 2/3] make search_on_category_select hide checkboxes

Note that we inject the CSS via JavaScript instead of using
css_dependencies because we do not wan the CSS to load
when JavaScript is disabled (since in that case the checkboxes
should be visible).
This commit is contained in:
Martin Fischer 2022-01-06 23:52:04 +01:00 committed by Markus Heiser
parent bfc9207171
commit 8e840a8dd7
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1 @@
.category input { display: none; }

View file

@ -40,3 +40,7 @@ function getHttpRequest() {
}
return httpRequest;
}
const style = document.createElement('style');
style.textContent = '.category input { display: none; }'
document.head.append(style);