From c7133efb12641c55395e5b249cbc3cf44d8c8dff Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 10 Mar 2021 15:03:18 +0100 Subject: [mod] oscar: move compiled files to the src directory --- searx/static/themes/oscar/src/js/toggleall.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 searx/static/themes/oscar/src/js/toggleall.js (limited to 'searx/static/themes/oscar/src/js/toggleall.js') 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;}); + }); +}); + -- cgit v1.2.3