summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/js/searx_src/toggleall.js
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-01 06:24:21 +0000
committerGitHub <noreply@github.com>2020-06-01 06:24:21 +0000
commit244f0fbd0dc37cc1d56f21e90a8fd3258c20d804 (patch)
treef418ce1fbee0e9f5cceafd03df7ac891b927347a /searx/static/themes/oscar/js/searx_src/toggleall.js
parentf8b16a6635d553f91cc3d2e81b816e10517e9a72 (diff)
parent19e32dc686e40f5e7ec1653f4a05aaa75cb17d80 (diff)
Merge branch 'master' into new-readme
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;});
+ });
+});
+