From d7d89369cb3f9d33855749f13c410fb444a81104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Sun, 31 May 2020 22:36:09 +0200 Subject: add disable all and allow all engines button to Oscar preferences --- searx/static/themes/oscar/js/searx_src/toggleall.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 searx/static/themes/oscar/js/searx_src/toggleall.js (limited to 'searx/static/themes/oscar/js/searx_src/toggleall.js') 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;}); + }); +}); + -- cgit v1.2.3