HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/somosedsa.sumar.com.py/wp-content/plugins/wpdiscuz-widgets/assets/js/admin-js.js
jQuery(document).ready(function ($) {
    /**
     cutting content
     */
    $(document).on('change', '#wpdiscuz_widget_content_cutting:not(:checked)', function () {
        $(this).parents(".wpd-opt-row").next().fadeOut(300);
    });

    $(document).on('change', '#wpdiscuz_widget_content_cutting:checked', function () {
        $(this).parents(".wpd-opt-row").next().fadeIn(300);
    });
    
    $(document).on('change', '#wpdiscuz_widget_post_title_cutting:not(:checked)', function () {
        $(this).parents(".wpd-opt-row").next().fadeOut(300);
    });

    $(document).on('change', '#wpdiscuz_widget_post_title_cutting:checked', function () {
        $(this).parents(".wpd-opt-row").next().fadeIn(300);
    });

    // tab sections toggle
    $(document).on('change', '.enable-tab-displaying', function () {
        $(this).parent().parent().next().slideToggle(400);
    });

    // datepicker
    $(document).on('focus', '.wpd_datepicker_wrapper input', function () {
        $(".comments_date_from").datepicker({
            dateFormat: 'yy-mm-dd',
            changeMonth: true,
            changeYear: true,
            numberOfMonths: 1,
            maxDate: "m",
            onClose: function (selectedDate) {
                $(".comments_date_to").datepicker("option", "minDate", selectedDate);
            }
        });
        $(".comments_date_to").datepicker({
            dateFormat: 'yy-mm-dd',
            changeMonth: true,
            changeYear: true,
            numberOfMonths: 1,
            maxDate: "m",
        });
    });


    //datepicker toggle
    $(document).on('change', '.date_interval_select', function () {
        if ($(this).val() === "custom_date") {
            $(this).next().fadeIn(400);
        } else {
            $(this).next().fadeOut(400);
        }
    });



}); // end ready