HEX
Server: Apache
System: Linux b5.s-host.com.ua 4.18.0-305.10.2.el7.x86_64 #1 SMP Fri Jul 23 21:00:55 UTC 2021 x86_64
User: unelbhzm (1470)
PHP: 8.0.18
Disabled: NONE
Upload Files
File: /sites/nuofama.com/wp-content/plugins/translatepress-multilingual/assets/js/trp-update-database.js
jQuery( function() {
    function trigger_update_by_ajax( data ) {
        jQuery.ajax({
            url: trp_updb_localized['admin_ajax_url'],
            type: 'post',
            dataType: 'json',
            data: data,
            success: function (response) {
                jQuery('#trp-update-database-progress').append(response['progress_message'])
                if ( response['trp_update_completed'] == 'no' ) {
                    trigger_update_by_ajax(response);
                }
            },
            error: function (errorThrown) {
                jQuery('#trp-update-database-progress').append(errorThrown['responseText'])
                console.log('TranslatePress AJAX Request Error while triggering database update');
            }
        });
    };
    trigger_update_by_ajax( {
        action: 'trp_update_database',
        trp_updb_nonce: trp_updb_localized['nonce'],
        initiate_update: true,
    } );
});