diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-13 09:29:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 09:29:13 +0100 |
commit | 9292571304376c2c463fb26ee0db89298bb00e6c (patch) | |
tree | 8a2dba56227f67aa52b091d1674190cd40e1411e /searx/static/themes/oscar/src/js/toggleall.js | |
parent | 22a2e544551e87fb9ea74d2fe07b59bfa0815368 (diff) | |
parent | cb04d4280642164bddd37e39151bf22799ef3792 (diff) | |
download | searxng-9292571304376c2c463fb26ee0db89298bb00e6c.tar.gz searxng-9292571304376c2c463fb26ee0db89298bb00e6c.zip |
Merge pull request #2346 from dalf/upgrade-oscar
[mod] oscar: upgrade dependencies
Diffstat (limited to 'searx/static/themes/oscar/src/js/toggleall.js')
-rw-r--r-- | searx/static/themes/oscar/src/js/toggleall.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/src/js/toggleall.js b/searx/static/themes/oscar/src/js/toggleall.js new file mode 100644 index 000000000..b6c484e3e --- /dev/null +++ b/searx/static/themes/oscar/src/js/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;}); + }); +}); + |