diff options
| author | Noémi Ványi <sitbackandwait@gmail.com> | 2020-05-31 22:36:09 +0200 |
|---|---|---|
| committer | Noémi Ványi <sitbackandwait@gmail.com> | 2020-05-31 23:39:21 +0200 |
| commit | d7d89369cb3f9d33855749f13c410fb444a81104 (patch) | |
| tree | 3d607a365293db799b2948e86956243a8db7b09a /searx/static/themes/oscar/js/searx.js | |
| parent | d38952c1335d3c6f8615870b11ef9737b203ad49 (diff) | |
add disable all and allow all engines button to Oscar preferences
Diffstat (limited to 'searx/static/themes/oscar/js/searx.js')
| -rw-r--r-- | searx/static/themes/oscar/js/searx.js | 10 |
1 files changed, 10 insertions, 0 deletions
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;}); + }); +}); + |