mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[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:
parent
bfc9207171
commit
8e840a8dd7
2 changed files with 5 additions and 0 deletions
1
searx/static/plugins/css/search_on_category_select.css
Normal file
1
searx/static/plugins/css/search_on_category_select.css
Normal file
|
@ -0,0 +1 @@
|
|||
.category input { display: none; }
|
|
@ -40,3 +40,7 @@ function getHttpRequest() {
|
|||
}
|
||||
return httpRequest;
|
||||
}
|
||||
|
||||
const style = document.createElement('style');
|
||||
style.textContent = '.category input { display: none; }'
|
||||
document.head.append(style);
|
||||
|
|
Loading…
Add table
Reference in a new issue