[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
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;
|
return httpRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const style = document.createElement('style');
|
||||||
|
style.textContent = '.category input { display: none; }'
|
||||||
|
document.head.append(style);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user