mirror of
https://github.com/searxng/searxng.git
synced 2025-07-17 10:19:22 +02:00
add disable all and allow all engines button to Oscar preferences
This commit is contained in:
parent
d38952c133
commit
d7d89369cb
4 changed files with 30 additions and 2 deletions
10
searx/static/themes/oscar/js/searx_src/toggleall.js
Normal file
10
searx/static/themes/oscar/js/searx_src/toggleall.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
$(document).ready(function(){
|
||||
$("#allow-all-engines").click(function() {
|
||||
$(".onoffswitch-checkbox").each(function() { this.checked = false;});
|
||||
});
|
||||
|
||||
$("#disable-all-engines").click(function() {
|
||||
$(".onoffswitch-checkbox").each(function() { this.checked = true;});
|
||||
});
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue