summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/js/searx_src
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-01 06:23:45 +0000
committerGitHub <noreply@github.com>2020-06-01 06:23:45 +0000
commit74135007ebe2beba5daeb45437ff781a537e4237 (patch)
tree6928e1f4c4f5afcc79e987ddb1c1ceb66df2e395 /searx/static/themes/oscar/js/searx_src
parentee5d2b319b878e34308cf0761375ca1481edf473 (diff)
parent19e32dc686e40f5e7ec1653f4a05aaa75cb17d80 (diff)
Merge branch 'master' into gigablast
Diffstat (limited to 'searx/static/themes/oscar/js/searx_src')
-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;});
+ });
+});
+