JEMBOT MAWOT Bypass Shell

Current Path : /home/c/i/n/cinepatreb/billetterie/modules/mollie/views/js/admin/
Upload File :
Current File : /home/c/i/n/cinepatreb/billetterie/modules/mollie/views/js/admin/init_mollie_account.js

/**
 * Mollie       https://www.mollie.nl
 *
 * @author      Mollie B.V. <info@mollie.nl>
 * @copyright   Mollie B.V.
 * @license     https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
 *
 * @see        https://github.com/mollie/PrestaShop
 * @codingStandardsIgnoreStart
 */

$(document).ready(function () {
    function initMollieAccount() {
        var source = $('input[name="MOLLIE_ACCOUNT_SWITCH"]');

        function checkInput(e) {
            if ($('input[name="MOLLIE_ACCOUNT_SWITCH"]:checked').val() == '0') {
                e.closest('.form-group')
                    .next('.form-group').hide()
                    .next('.form-group').hide()
                    .next('.form-group').hide();
                e.closest('.form-group')
                    .find('.help-block').show()
                    .find('.help-block').show()
                    .find('.help-block').show();
            } else {
                e.closest('.form-group')
                    .next('.form-group').show()
                    .next('.form-group').show()
                    .next('.form-group').show();
                e.closest('.form-group')
                    .find('.help-block').hide()
                    .find('.help-block').hide()
                    .find('.help-block').hide();
            }
        }

        setTimeout(function () {
            checkInput(source);
        }, 100);

        $(source).on('change', function () {
            checkInput(source);
        });
    }

    initMollieAccount();
});

xxxxx1.0, XXX xxxx