Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets-rebuild.corals.io/wp-content/plugins/advanced-gutenberg/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets-rebuild.corals.io/wp-content/plugins/advanced-gutenberg/assets/js/block-config.js
jQuery(window).on('load', function () {
    // Loading UI
    jQuery('.block-config-modal-wrapper').show();
    setTimeout(function () {
        jQuery('#advgb-loading-screen').hide();
    }, 1000);
});

jQuery(document).ready(function ($) {
    // Setup minicolors input
    $('.minicolors-input').minicolors();

    // Add block name for top header
    $('.block-config-modal-title').text(parent.window.blockLabel + ' ' + $('.block-config-modal-title').text());

    $('.block-config-save').unbind('click').click(function () {
        var dataSubmit = {};
        var blockType = $('.block-type-input').val();
        var nonceVal = $('#advgb_block_config_nonce').val();
        dataSubmit[blockType] = {};

        $('.block-config-input').each(function () {
            var settingName = $(this).attr('name');
            var settingValue = $(this).val().trim();

            if ($(this).attr('type') === 'checkbox') {
                if (!this.checked) settingValue = 0;
            }

            if (settingValue !== "") {
                dataSubmit[blockType][settingName] = settingValue;
            }
        });

        $.ajax({
            url: parent.window.ajaxurl,
            type: 'POST',
            data: {
                action: 'advgb_block_config_save',
                nonce: nonceVal,
                blockType: blockType,
                settings: dataSubmit
            },
            beforeSend: function () {
                $('#advgb-loading-screen')
                    .append('<div id="advgb-config-saved-text">Saving... Do not close this window!</div>')
                    .show();
            },
            success: function () {
                $('#advgb-config-saved-text').text('Saved successfully!');
                setTimeout(function () {
                    $('#advgb-loading-screen').hide();
                    $('#advgb-config-saved-text').remove();
                }, 2000);
            },
            error: function ( jqxhr, textStatus, error ) {
                alert(textStatus + " : " + error + ' - ' + jqxhr.responseJSON);
                $('#advgb-loading-screen').hide();
                $('#advgb-config-saved-text').remove();
            }
        });
    });
});

Spamworldpro Mini