%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/itworks/wp-content/plugins/learnpress/inc/libraries/meta-box/js/
Upload File :
Create Path :
Current File : /var/www/html/itworks/wp-content/plugins/learnpress/inc/libraries/meta-box/js/input-list.js

jQuery( function ( $ ) {
	function update() {
		var $this = $( this ),
			$children = $this.closest( 'li' ).children( 'ul' );

		if ( $this.is( ':checked' ) ) {
			$children.removeClass( 'hidden' );
		} else {
			$children
				.addClass( 'hidden' )
				.find( 'input' )
				.removeAttr( 'checked' );
		}
	}

	$( '.rwmb-input' )
		.on( 'change', '.rwmb-input-list.rwmb-collapse input[type="checkbox"]', update )
		.on( 'clone', '.rwmb-input-list.rwmb-collapse input[type="checkbox"]', update );
	$( '.rwmb-input-list.rwmb-collapse input[type="checkbox"]' ).each( update );

	$( '.rwmb-input-list-select-all-none' ).toggle(
		function () {
			$( this ).parent().siblings( '.rwmb-input-list' ).find( 'input' ).prop( 'checked', true );
		},
		function () {
			$( this ).parent().siblings( '.rwmb-input-list' ).find( 'input' ).prop( 'checked', false );
		}
	);
} );

Zerion Mini Shell 1.0