| Server IP : 104.26.5.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/plugins/trx_addons/components/ocdi/ |
Upload File : |
jQuery(document).ready(function() {
'use strict';
// Change import type
jQuery( '.js-ocdi-import-data' ).clone().appendTo('.ocdi__button-container').addClass('js-ocdi-import-data-not-inited').removeClass('js-ocdi-import-data');
jQuery( '.js-ocdi-import-data' ).hide();
jQuery( '.js-ocdi-import-data-not-inited' ).live( 'click', function() {
var ocdi_button = jQuery(this);
var demo_type = jQuery('.ocdi_demo_type select.demo_type').val();
var import_elements = 'none';
var import_type = '';
jQuery(ocdi_button).addClass('disable');
jQuery('.ocdi_import_components input[name="import_type"]').each(function() {
var value = jQuery(this).attr('value');
if (jQuery(this).is(":checked"))
import_type = value;
});
jQuery('.ocdi_import_components input[type="checkbox"]').each(function() {
var name = jQuery(this).attr('name');
if (jQuery(this).is(":checked"))
import_elements += '|' + name;
});
jQuery.post(TRX_ADDONS_STORAGE['ajax_url'], {
action: 'trx_addons_ocdi_demo_settings_change',
nonce: TRX_ADDONS_STORAGE['ajax_nonce'],
trx_addons_ocdi_demo_type: demo_type,
trx_addons_ocdi_import_type: import_type,
trx_addons_ocdi_import_elements: import_elements,
is_admin_request: 1
}).done( function( response ) {
var rez = trx_addons_parse_ajax_response( response );
if (rez.error === '') {
jQuery(ocdi_button).removeClass('disable').remove();
jQuery( '.js-ocdi-import-data' ).show().click();
}
else {
console.log(rez.error);
}
});
});
});