summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/src/js/toggleall.js
blob: 69acb9d725f438b1d06d9ca943c94e9c7feff03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @license
 * (C) Copyright Contributors to the SearXNG project.
 * (C) Copyright Contributors to the searx project (2014 - 2021).
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

$(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;});
    });
});