toggleall.js 490 B

1234567891011121314151617
  1. /**
  2. * @license
  3. * (C) Copyright Contributors to the SearXNG project.
  4. * (C) Copyright Contributors to the searx project (2014 - 2021).
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. $(document).ready(function(){
  8. $("#allow-all-engines").click(function() {
  9. $(".onoffswitch-checkbox").each(function() { this.checked = false;});
  10. });
  11. $("#disable-all-engines").click(function() {
  12. $(".onoffswitch-checkbox").each(function() { this.checked = true;});
  13. });
  14. });