summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/js/searx_src/toggleall.js
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2020-05-31 22:36:09 +0200
committerNoémi Ványi <sitbackandwait@gmail.com>2020-05-31 23:39:21 +0200
commitd7d89369cb3f9d33855749f13c410fb444a81104 (patch)
tree3d607a365293db799b2948e86956243a8db7b09a /searx/static/themes/oscar/js/searx_src/toggleall.js
parentd38952c1335d3c6f8615870b11ef9737b203ad49 (diff)
add disable all and allow all engines button to Oscar preferences
Diffstat (limited to 'searx/static/themes/oscar/js/searx_src/toggleall.js')
-rw-r--r--searx/static/themes/oscar/js/searx_src/toggleall.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/js/searx_src/toggleall.js b/searx/static/themes/oscar/js/searx_src/toggleall.js
new file mode 100644
index 000000000..b6c484e3e
--- /dev/null
+++ b/searx/static/themes/oscar/js/searx_src/toggleall.js
@@ -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;});
+ });
+});
+