MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/rit-core/vendor/meta-box/js/taxonomy.js
jQuery( function( $ )
{
	'use strict';

	$( '.rw-taxonomy-tree input:checkbox' ).change( function()
	{
		var $this = $( this ),
			$childList = $this.parent().siblings( '.rw-taxonomy-tree' );
		if ( $this.is( ':checked' ) )
		{
			$childList.removeClass( 'hidden' );
		}
		else
		{
			$childList.find( 'input' ).removeAttr( 'checked' );
			$childList.addClass( 'hidden' );
		}
	} );

	$( '.rw-taxonomy-tree select' ).change( function()
	{
		var $this = $( this ),
			$childList = $this.siblings( '.rw-taxonomy-tree' ),
			$value = $this.val();
		$childList.removeClass( 'active' ).addClass( 'disabled' ).find( 'select' ).each( function()
		{
			$( this ).val( $( 'options:first', this ).val() ).attr( 'disabled', 'disabled' );
		} );
		$childList.filter( '.rwmb-taxonomy-' + $value ).removeClass( 'disabled' ).addClass( 'active' ).children( 'select' ).removeAttr( 'disabled' );
	} );
} );