403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/robotics/wp-content/plugins/types/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/robotics/wp-content/plugins/types/public/js/settings.js
//noinspection JSUnusedAssignment
var Types = Types || {};

Types.settings = Types.settings || {};

( function( $ ) {

    var modelData = $.parseJSON(WPV_Toolset.Utils.editor_decode64($('#types_model_data').html()));
    Types.settings.ajaxInfo = modelData.ajaxInfo || {};

    Types.settings.save = function( setting_id ) {

        var data = {
            action: 'types_settings_action',
            setting: setting_id,
            setting_value: $("input[name^='"+setting_id+"']" ).serialize(),
            wpnonce: Types.settings.ajaxInfo.fieldAction.nonce,
        };

        $( document ).trigger( 'js-toolset-event-update-setting-section-triggered' );

        $.ajax({
            type: "POST",
            dataType: "json",
            url: ajaxurl,
            data: data,
            success: function( response ) {
                if ( response.success ) {
                    $( document ).trigger( 'js-toolset-event-update-setting-section-completed' );
                } else {
                    $( document ).trigger( 'js-toolset-event-update-setting-section-failed' );
                }
            },
            error: function( ajaxContext ) {
                $( document ).trigger( 'js-toolset-event-update-setting-section-failed' );
            },
            complete: function() {

            }
        });
    }

    $( 'body' ).on( 'change', '[data-types-setting-save]', function() {
        Types.settings.save( $( this ).attr( 'data-types-setting-save' ) );
    } );

} )( jQuery );

Youez - 2016 - github.com/yon3zu
LinuXploit