HEX
Server: Apache/2
System: Linux 17792.vpsvinahost.vn 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64
User: hitehp (1010)
PHP: 7.4.28
Disabled: NONE
Upload Files
File: /home/hitehp/public_html/wp-content/plugins/woosidebars/assets/js/admin.js
jQuery( document ).ready( function () {
	jQuery( '.woo-conditions.tabs' ).tabs();
	jQuery( '.woo-conditions.tabs .inner-tabs' ).tabs();

	jQuery( '#woosidebars-conditions .advanced-settings a' ).click( function ( e ) {
		jQuery( '#woosidebars-conditions .tabs li.advanced' ).toggleClass( 'hide' );

		var new_status = '1'; // Do display.
		if ( jQuery( '#woosidebars-conditions .tabs li.advanced' ).hasClass( 'hide' ) ) {
			new_status = '0'; // Don't display.
		}

		// Perform the AJAX call.
		jQuery.post(
			ajaxurl,
			{
				action : 'woosidebars-toggle-advanced-items',
				woosidebars_advanced_noonce : woosidebars_localized_data.woosidebars_advanced_noonce,
				new_status: new_status
			},
			function( response ) {}
		);

		return false;
	});
});