/** * This file is part of Zwii. * * For full copyright and license information, please see the LICENSE * file that was distributed with this source code. * * @author Frédéric Tempez * @copyright Copyright (C) 2018-2020, Frédéric Tempez * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International * @link http://zwiicms.com/ */ /** * Droits des groupes */ $(document).ready(function () { $(".registrationUserEditGroupProfil").hide(); $(".registrationUserCommentProfil").hide(); $("#registrationUserEditGroupProfil" + $("#registrationUserEditGroup").val()).show(); $("#registrationUserCommentProfil" + $("#registrationUserEditGroup").val()).show(); $("#registrationUserEditGroup").on("change", function () { $(".registrationUserEditGroupProfil").hide(); $(".registrationUserCommentProfil").hide(); $("#registrationUserEditGroupProfil" + $(this).val()).show(); $("#registrationUserCommentProfil" + $(this).val()).show(); }); });