Deltacms/module/statislite/view/advanced/advanced.js.php

65 lines
1.6 KiB
PHP

/**
* This file is part of DeltaCMS.
* For full copyright and license information, please see the LICENSE
* file that was distributed with this source code.
* @author Sylvain Lelièvre <lelievresylvain@free.fr>
* @copyright Copyright (C) 2021-2022, Sylvain Lelièvre
* @license GNU General Public License, version 3
* @link https://deltacms.fr/
*/
/**
* Ajouter ou supprimer une adresse IP masque l'autre case à cocher
*/
$("#statisliteAddIp").on("change", function() {
if ($(this).is(':checked') ) {
$(".statisliteSupCheckboxIP").slideUp();
} else {
$(".statisliteSupCheckboxIP").slideDown();
}
});
$("#statisliteSupIp").on("change", function() {
if ($(this).is(':checked') ) {
$(".statisliteCheckboxAddIP").slideUp();
} else {
$(".statisliteCheckboxAddIP").slideDown();
}
});
/**
* Ajouter ou supprimer une page masque l'autre case à cocher
*/
$("#statisliteAddQS").on("change", function() {
if ($(this).is(':checked') ) {
$(".statisliteSupCheckboxQS").slideUp();
} else {
$(".statisliteSupCheckboxQS").slideDown();
}
});
$("#statisliteSupQS").on("change", function() {
if ($(this).is(':checked') ) {
$(".statisliteCheckboxAddQS").slideUp();
} else {
$(".statisliteCheckboxAddQS").slideDown();
}
});
/**
* Ajouter ou supprimer un robot
*/
$("#statisliteAddBot").on("change", function() {
if ($(this).is(':checked') ) {
$(".statisliteSupCheckboxBot").slideUp();
} else {
$(".statisliteSupCheckboxBot").slideDown();
}
});
$("#statisliteSupBot").on("change", function() {
if ($(this).is(':checked') ) {
$(".statisliteCheckboxAddBot").slideUp();
} else {
$(".statisliteCheckboxAddBot").slideDown();
}
});