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: [PATCH] add disable all and allow all engines button to Oscar preferences --- searx/static/themes/oscar/js/searx.js | 10 ++++++++++ searx/static/themes/oscar/js/searx.min.js | Bin 4915 -> 5124 bytes .../themes/oscar/js/searx_src/toggleall.js | 10 ++++++++++ searx/templates/oscar/preferences.html | 8 ++++++++ 4 files changed, 28 insertions(+) create mode 100644 searx/static/themes/oscar/js/searx_src/toggleall.js diff --git a/searx/static/themes/oscar/js/searx.js b/searx/static/themes/oscar/js/searx.js index 9138576f5..c6feda50c 100644 --- a/searx/static/themes/oscar/js/searx.js +++ b/searx/static/themes/oscar/js/searx.js @@ -357,3 +357,13 @@ $(document).ready(function(){ $( this ).off( event ); }); }); +;$(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;}); + }); +}); + diff --git a/searx/static/themes/oscar/js/searx.min.js b/searx/static/themes/oscar/js/searx.min.js index 4c01dca94820a1ef8230dcdfabf26f8464f2324a..9c3e13b59b85fdda39ac75c6eecc41b9a295dc6a 100644 GIT binary patch delta 243 zcmdn2)}k>%lF!&s*T7WQ$iT=zp+-Srqx);2$#qO}^(q=l%85BS`Q^GmQa3d(Ju@%0 zSV>baIVUqYTO+MBFS#T$KTkum8mLe&KQBKmt++h1BsoJjIU_YWJ1M^cs5Uh*IRjZ~ qNk(R|9#}p##a7X
+ +
+

+ + +

+
+ {% for categ in all_categories %}