HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/_domains/waldroninteractive.com/wp-content/plugins/meta-box/js/image-select.js
( function ( $, rwmb ) {
	'use strict';

	function setActiveClass() {
		var $this = $( this ),
			type = $this.attr( 'type' ),
			selected = $this.is( ':checked' ),
			$parent = $this.parent(),
			$others = $parent.siblings();
		if ( selected ) {
			$parent.addClass( 'rwmb-active' );
			if ( type === 'radio' ) {
				$others.removeClass( 'rwmb-active' );
			}
		} else {
			$parent.removeClass( 'rwmb-active' );
		}
	}

	function init( e ) {
		$( e.target ).find( '.rwmb-image-select input' ).trigger( 'change' );
	}

	rwmb.$document
		.on( 'mb_ready', init )
		.on( 'change', '.rwmb-image-select input', setActiveClass );
} )( jQuery, rwmb );